From a41347e971a5b7498d12e47b25895faf4feb2bd8 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Tue, 27 Feb 2024 16:50:06 +0530 Subject: kay/acme/rfc2136: reload dependencies after cert fetch --- hosts/kay/modules/mail.nix | 1 + hosts/kay/modules/www.nix | 1 + 2 files changed, 2 insertions(+) diff --git a/hosts/kay/modules/mail.nix b/hosts/kay/modules/mail.nix index b255650..cd47d39 100644 --- a/hosts/kay/modules/mail.nix +++ b/hosts/kay/modules/mail.nix @@ -24,6 +24,7 @@ in { 4190 # managesieve ]; + security.acme.certs.${domain}.postRun = "systemctl restart stalwart-mail.service"; sops.secrets = { "mail.${domain}/dkim_rsa" = {}; "mail.${domain}/dkim_ed25519" = {}; diff --git a/hosts/kay/modules/www.nix b/hosts/kay/modules/www.nix index 1447b1e..3891bf6 100644 --- a/hosts/kay/modules/www.nix +++ b/hosts/kay/modules/www.nix @@ -13,6 +13,7 @@ in ./cgit.nix ]; + security.acme.certs.${domain}.postRun = "systemctl reload nginx.service"; networking.firewall = { allowedTCPPorts = [ 80 443 ]; allowedUDPPorts = [ 443 ]; -- cgit v1.2.3