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-03-06 20:27:30 +00:00
"github:jrpotter/notebook/1651c9d6c3e75fd25557dd6cefef6e4d6441ff46";
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";
};
};
}