From 27530ba856d1d5bbd064fcf17e1ab6e43ec6aa77 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sun, 22 May 2022 10:33:22 +0000 Subject: [PATCH] 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") --- nixos/modules/services/mail/postfix.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/mail/postfix.nix b/nixos/modules/services/mail/postfix.nix index da14b6eef7e..de00c87b95a 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