2024-01-31 13:11:29 +00:00
|
|
|
{ system, ... }:
|
|
|
|
let
|
|
|
|
notebook = builtins.getFlake
|
2024-02-07 13:19:37 +00:00
|
|
|
"github:jrpotter/notebook/3e5bb9b9a78f5d67c88df2247d6630176e7afbc4";
|
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";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|