diff --git a/modules/monit.nix b/modules/monit.nix index f5f468d..0eb0f04 100644 --- a/modules/monit.nix +++ b/modules/monit.nix @@ -18,7 +18,7 @@ in }; }; - config = { + config = lib.mkIf cfg.enable { sops.secrets = { monitMailserverConfig = {