diff --git a/nixos/machines/chungus/configuration.nix b/nixos/machines/chungus/configuration.nix index c597796..ae3865c 100644 --- a/nixos/machines/chungus/configuration.nix +++ b/nixos/machines/chungus/configuration.nix @@ -40,7 +40,7 @@ ./syncthing.nix ./kiosk.nix - #./trilium.nix + ./trilium.nix ]; diff --git a/nixos/machines/chungus/trilium.nix b/nixos/machines/chungus/trilium.nix index 59de5ac..6c70c12 100644 --- a/nixos/machines/chungus/trilium.nix +++ b/nixos/machines/chungus/trilium.nix @@ -5,10 +5,16 @@ dataDir = "/srv/trilium"; instanceName = "chungus"; host = "10.23.42.28"; - noAuthentication = true; - #nginx = { - # enable = true; - # hostName = "trilium.${config.networking.hostName}.private"; - #}; + #noAuthentication = true; + nginx = { + enable = true; + hostName = "trilium.${config.networking.hostName}.private"; + }; }; + + services.nginx.virtualHosts."${config.services.trilium-server.nginx.hostName}".extraConfig = '' + allow ${config.tinc.private.subnet}; + deny all; + ''; + }