From 5aa4f8b947c4dcc23a0fd9d3074c8746b8316d44 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sun, 29 Oct 2023 02:49:09 +0100 Subject: [PATCH] fix: mailman web static dir permissions --- hosts/nachtigall/apps/mailman.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosts/nachtigall/apps/mailman.nix b/hosts/nachtigall/apps/mailman.nix index 286912d..4b79396 100644 --- a/hosts/nachtigall/apps/mailman.nix +++ b/hosts/nachtigall/apps/mailman.nix @@ -14,6 +14,12 @@ enableACME = true; forceSSL = true; }; + # Tweak permissions so nginx can read and serve the static assets + # (otherwise /var/lib/mailman-web is mode 0600) + # https://nixos.wiki/wiki/Mailman + systemd.services.mailman-settings.script = '' + chmod o+x /var/lib/mailman-web-static + ''; services.postfix = { enable = true;