From 758b66d8787758790018d5dd33a734b3e0d3f1ae Mon Sep 17 00:00:00 2001 From: sefidel Date: Sun, 9 Jul 2023 15:10:53 +0900 Subject: fix(services/nixos-mailserver): fix cert expired issue --- modules/services/nixos-mailserver.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/services/nixos-mailserver.nix b/modules/services/nixos-mailserver.nix index 5e28b6e..cba1386 100644 --- a/modules/services/nixos-mailserver.nix +++ b/modules/services/nixos-mailserver.nix @@ -40,6 +40,13 @@ in ''; }; + # HACK: nixos-mailserver sets up reload hook on 'fqdn', which is 'mail.exotic.sh'. + # Since our cert is a wildcard cert with domain 'exotic.sh', it is excluded from the hook. + security.acme.certs."exotic.sh".reloadServices = [ + "postfix.service" + "dovecot2.service" + ]; + mailserver = { enable = true; fqdn = "mail.exotic.sh"; -- cgit 1.4.1