nixos-configuration/services/notebook.nix

16 lines
371 B
Nix
Raw Normal View History

2024-01-31 13:11:29 +00:00
{ system, ... }:
let
notebook = builtins.getFlake
2024-02-02 16:53:02 +00:00
"github:jrpotter/notebook/9bec3123b1816a0d1c04f42c40ed46baef5f3ce0";
2024-01-31 13:11:29 +00:00
in
{
services.nginx.virtualHosts."notebook.jrpotter.com" = {
forceSSL = true;
enableACME = true;
locations."/" = {
2024-02-02 16:53:02 +00:00
root = "${notebook.packages.${system}.app}/share";
2024-01-31 13:11:29 +00:00
tryFiles = "$uri $uri.html $uri/ =404";
};
};
}