nixos-configuration/services/notebook.nix

23 lines
543 B
Nix
Raw Normal View History

2024-01-31 13:11:29 +00:00
{ system, ... }:
let
notebook = builtins.getFlake
2024-08-25 01:08:38 +00:00
"github:jrpotter/notebook/a0c7a4e2a8e04ec14fdbbd1722ce4f7f74a9ec55";
2024-01-31 13:11:29 +00:00
in
{
services.nginx = {
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."notebook.jrpotter.com" = {
forceSSL = true;
enableACME = true;
locations."/" = {
root = "${notebook.packages.${system}.app}/share";
tryFiles = "$uri $uri.html $uri/ =404";
};
2024-01-31 13:11:29 +00:00
};
};
}