{ system, ... }: let notebook = builtins.getFlake "github:jrpotter/notebook/79b715a64c703279f593cad08775b0d73400a19b"; in { services.nginx.virtualHosts."notebook.jrpotter.com" = { forceSSL = true; enableACME = true; locations."/" = { root = "${notebook.packages.${system}.app}/share"; tryFiles = "$uri $uri.html $uri/ =404"; }; }; }