diff options
author | sefidel <contact@sefidel.net> | 2023-07-09 15:10:53 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2023-07-09 15:10:53 +0900 |
commit | 758b66d8787758790018d5dd33a734b3e0d3f1ae (patch) | |
tree | 8e903820cbe589db6033b2dd8071781291e16edd | |
parent | 7febc8294bc84da853486c711f3a13ceca9b7fca (diff) | |
download | infra-758b66d8787758790018d5dd33a734b3e0d3f1ae.tar.gz infra-758b66d8787758790018d5dd33a734b3e0d3f1ae.zip |
fix(services/nixos-mailserver): fix cert expired issue
-rw-r--r-- | modules/services/nixos-mailserver.nix | 7 |
1 files changed, 7 insertions, 0 deletions
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"; |