diff --git a/modules/holocron/zfs/default.nix b/modules/holocron/zfs/default.nix index 4794345..88c69f1 100644 --- a/modules/holocron/zfs/default.nix +++ b/modules/holocron/zfs/default.nix @@ -19,16 +19,31 @@ in { boot.supportedFilesystems = ["zfs"]; # enable smart monitoring - services.smartd.enable = true; + services.smartd = { + enable = true; + notifications.mail = { + enable = true; + sender = "zfs@snowbelle.lan"; + }; + }; # enable zfs services.zfs = { autoScrub.enable = true; autoScrub.interval = "weekly"; + # email notifs + zed = { + enableMail = true; + settings = { + ZED_EMAIL_ADDR = ["root"]; + # send notification if scrub succeeds + ZED_NOTIFY_VERBOSE = true; + }; + }; }; # install userspace tools for acl's - environment.systemPackages = with pkgs; [ nfs-utils ]; + environment.systemPackages = with pkgs; [smartmontools]; fileSystems."/holocron" = { device = "holocron";