From 2ca9cdd4dae693a1f76a4024601d2f5153065437 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Tue, 2 Jul 2024 22:29:28 +0200 Subject: [PATCH] machine/thinkman: disable postfix by removing mail from drive-monitor --- machines/thinkman/hardware-configuration.nix | 1 - modules/hardware/drive-monitor/default.nix | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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) {