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-24 13:17:48 +00:00
"github:jrpotter/notebook/79b715a64c703279f593cad08775b0d73400a19b";
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";
};
};
}