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: fb2fa1b50f ("nixos/postfix: pull setup into its own unit")
This commit is contained in:
Alyssa Ross
2022-05-22 10:33:22 +00:00
parent 505ffa2ffc
commit 27530ba856
+1
View File
@@ -725,6 +725,7 @@ in
systemd.services.postfix-setup =
{ description = "Setup for Postfix mail server";
serviceConfig.RemainAfterExit = true;
serviceConfig.Type = "oneshot";
script = ''
# Backwards compatibility