From 69462bf486802dcdedafc19227fa024780a27e06 Mon Sep 17 00:00:00 2001 From: frero Date: Sun, 24 Nov 2024 01:01:55 +0100 Subject: [PATCH] let smartd send mail notification --- base/services/smartd.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/base/services/smartd.nix b/base/services/smartd.nix index de71e85..36a22ed 100644 --- a/base/services/smartd.nix +++ b/base/services/smartd.nix @@ -1,8 +1,18 @@ { config, pkgs, lib, ... }: { - services.smartd.enable = lib.mkDefault true; + services.smartd = { + enable = lib.mkDefault true; + notifications = { + mail = { + enable = true; + sender = "root@pvv.ntnu.no"; + recipient = "root@pvv.ntnu.no"; + }; + wall.enable = false; + }; + }; environment.systemPackages = lib.optionals config.services.smartd.enable (with pkgs; [ smartmontools ]); -} \ No newline at end of file +} -- 2.44.2