summary refs log tree commit diff
path: root/nixos/modules/services/mail/mailman.nix
diff options
context:
space:
mode:
authorMichal Sojka <michal.sojka@cvut.cz>2021-03-11 00:38:53 +0100
committerMichal Sojka <michal.sojka@cvut.cz>2021-06-02 08:20:08 +0200
commit2a4755e1d4be477f00ce6b068a2c45d8212b8ba4 (patch)
treea7d6f450f07023d3440aebc1abf488a4c51b5d81 /nixos/modules/services/mail/mailman.nix
parentd9e45124431c887bedf665169d20d98e5854d113 (diff)
downloadnixpkgs-2a4755e1d4be477f00ce6b068a2c45d8212b8ba4.tar
nixpkgs-2a4755e1d4be477f00ce6b068a2c45d8212b8ba4.tar.gz
nixpkgs-2a4755e1d4be477f00ce6b068a2c45d8212b8ba4.tar.bz2
nixpkgs-2a4755e1d4be477f00ce6b068a2c45d8212b8ba4.tar.lz
nixpkgs-2a4755e1d4be477f00ce6b068a2c45d8212b8ba4.tar.xz
nixpkgs-2a4755e1d4be477f00ce6b068a2c45d8212b8ba4.tar.zst
nixpkgs-2a4755e1d4be477f00ce6b068a2c45d8212b8ba4.zip
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
Diffstat (limited to 'nixos/modules/services/mail/mailman.nix')
-rw-r--r--nixos/modules/services/mail/mailman.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/mail/mailman.nix b/nixos/modules/services/mail/mailman.nix
index f75d6183c3e..831175d5625 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