about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-07-09 15:10:53 +0900
committersefidel <contact@sefidel.net>2023-07-09 15:10:53 +0900
commit758b66d8787758790018d5dd33a734b3e0d3f1ae (patch)
tree8e903820cbe589db6033b2dd8071781291e16edd /modules
parent7febc8294bc84da853486c711f3a13ceca9b7fca (diff)
downloadinfra-758b66d8787758790018d5dd33a734b3e0d3f1ae.tar.gz
infra-758b66d8787758790018d5dd33a734b3e0d3f1ae.zip
fix(services/nixos-mailserver): fix cert expired issue
Diffstat (limited to 'modules')
-rw-r--r--modules/services/nixos-mailserver.nix7
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";