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