From 2a4755e1d4be477f00ce6b068a2c45d8212b8ba4 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Thu, 11 Mar 2021 00:38:53 +0100 Subject: [PATCH] nixos/mailman: Fix mailman-settings.service configuration Without this change, mailman-settings.service is not guaranteed to complete before dependent services. This can lead to various errors like: mailman-web-setup.service: Changing to the requested working directory failed: No such file or directory --- nixos/modules/services/mail/mailman.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/mail/mailman.nix b/nixos/modules/services/mail/mailman.nix index f75d6183c3e3..831175d5625f 100644 --- a/nixos/modules/services/mail/mailman.nix +++ b/nixos/modules/services/mail/mailman.nix @@ -333,6 +333,7 @@ in { before = [ "mailman.service" "mailman-web-setup.service" "mailman-uwsgi.service" "hyperkitty.service" ]; requiredBy = [ "mailman.service" "mailman-web-setup.service" "mailman-uwsgi.service" "hyperkitty.service" ]; path = with pkgs; [ jq ]; + serviceConfig.Type = "oneshot"; script = '' mailmanDir=/var/lib/mailman mailmanWebDir=/var/lib/mailman-web