diff --git a/machines/thinkman/hardware-configuration.nix b/machines/thinkman/hardware-configuration.nix index adcdb35..63cf3c2 100644 --- a/machines/thinkman/hardware-configuration.nix +++ b/machines/thinkman/hardware-configuration.nix @@ -14,7 +14,6 @@ in debug.enable = true; drive-monitor = { enable = true; - OnFailureMail = "server@buehler.rocks"; }; firmware = { enable = true; diff --git a/modules/hardware/drive-monitor/default.nix b/modules/hardware/drive-monitor/default.nix index 74f0717..8d2d0df 100644 --- a/modules/hardware/drive-monitor/default.nix +++ b/modules/hardware/drive-monitor/default.nix @@ -16,7 +16,7 @@ in config = lib.mkIf cfg.enable { services = { - postfix.enable = lib.mkIf (cfg.OnFailureMail != null) true; + postfix.enable = cfg.OnFailureMail != null; smartd = { enable = true; notifications.mail = lib.mkIf (cfg.OnFailureMail != null) {