machine/thinkman: disable postfix by removing mail from drive-monitor

This commit is contained in:
Felix Buehler 2024-07-02 22:29:28 +02:00
parent 1b08d9bf1a
commit 2ca9cdd4da
2 changed files with 1 additions and 2 deletions

View file

@ -14,7 +14,6 @@ in
debug.enable = true;
drive-monitor = {
enable = true;
OnFailureMail = "server@buehler.rocks";
};
firmware = {
enable = true;

View file

@ -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) {