From 7ddca49451f841637491a6d2bbfc2048c78e5777 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Thu, 18 May 2023 11:15:26 +0000 Subject: [PATCH] nixos/mailman: set RemainAfterExit for settings This seems to be required to have the unit re-run if services.mailman.restApiPassFile gets set. --- 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 ded30736440e..ec2a19f58bb1 100644 --- a/nixos/modules/services/mail/mailman.nix +++ b/nixos/modules/services/mail/mailman.nix @@ -503,6 +503,7 @@ in { path = with pkgs; [ jq ]; after = optional withPostgresql "postgresql.service"; requires = optional withPostgresql "postgresql.service"; + serviceConfig.RemainAfterExit = true; serviceConfig.Type = "oneshot"; script = '' install -m0750 -o mailman -g mailman ${mailmanCfgFile} /etc/mailman.cfg