From 34deb2125f76df92d198b4a118a5441bc2a16633 Mon Sep 17 00:00:00 2001 From: truxnell <19149206+truxnell@users.noreply.github.com> Date: Sun, 17 Mar 2024 21:47:39 +1100 Subject: [PATCH] fix: restart maddy on secret change --- nixos/hosts/common/optional/maddy.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/hosts/common/optional/maddy.nix b/nixos/hosts/common/optional/maddy.nix index 0ebec3a..55d3647 100644 --- a/nixos/hosts/common/optional/maddy.nix +++ b/nixos/hosts/common/optional/maddy.nix @@ -7,6 +7,10 @@ group = "maddy"; }; + # Restart dnscrypt when secret changes + config.sops.secrets."system/mail/maddy/envFile".restartUnits = [ "maddy" ]; + + # config.services.maddy = { enable = true;