2024-01-31 13:11:29 +00:00
|
|
|
{ system, ... }:
|
|
|
|
let
|
|
|
|
notebook = builtins.getFlake
|
2024-02-22 21:26:06 +00:00
|
|
|
"github:jrpotter/notebook/a42ccc880a7c408ec7f87f6eceeaf9d435e68cc4";
|
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";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|