about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2022-05-22 10:33:22 +0000
committerAlyssa Ross <hi@alyssa.is>2022-05-22 10:33:22 +0000
commit27530ba856d1d5bbd064fcf17e1ab6e43ec6aa77 (patch)
treea012cebf6496176d38b061117bf690c351be807b /nixos
parent505ffa2ffcd2c920f067275c43a566558012b785 (diff)
nixos/postfix: make postfix-setup RemainAfterExit
Otherwise, it wouldn't get restarted when a new system configuration
was activatad, so the Postfix configuration wouldn't be updated.

Fixes: fb2fa1b50fe ("nixos/postfix: pull setup into its own unit")
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/mail/postfix.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/mail/postfix.nix b/nixos/modules/services/mail/postfix.nix
index da14b6eef7edf..de00c87b95a5b 100644
--- a/nixos/modules/services/mail/postfix.nix
+++ b/nixos/modules/services/mail/postfix.nix
@@ -725,6 +725,7 @@ in
 
       systemd.services.postfix-setup =
         { description = "Setup for Postfix mail server";
+          serviceConfig.RemainAfterExit = true;
           serviceConfig.Type = "oneshot";
           script = ''
             # Backwards compatibility