clanModules: Add vaultwarden module. Add nginx module. Make matrix-synapse subdomain configurable

This commit is contained in:
Qubasa
2024-08-23 18:15:30 +02:00
parent 7829448802
commit ac96a0250c
9 changed files with 265 additions and 26 deletions

View File

@@ -143,6 +143,7 @@ in
"dyndns"
"enable"
] "Just define clan.dyndns.settings to enable it")
../nginx
];
config = lib.mkMerge [
@@ -158,11 +159,6 @@ in
createHome = true;
};
networking.firewall.allowedTCPPorts = lib.mkIf cfg.server.enable [
80
443
];
services.nginx = lib.mkIf cfg.server.enable {
enable = true;
virtualHosts = {
@@ -249,7 +245,6 @@ in
PrivateDevices = "yes";
ProtectKernelModules = "yes";
ProtectKernelTunables = "yes";
WorkingDirectory = "/var/lib/${name}";
ReadWritePaths = [
"/proc/self"