diff --git a/mail-server/nginx.nix b/mail-server/nginx.nix index 1590c5f..abc6421 100644 --- a/mail-server/nginx.nix +++ b/mail-server/nginx.nix @@ -36,9 +36,9 @@ in }; }; - security.acme.certs."${cfg.fqdn}".postRun = '' - systemctl reload postfix - systemctl reload dovecot2 - ''; + security.acme.certs."${cfg.fqdn}".reloadServices = [ + "postfix.service" + "dovecot2.service" + ]; }; }