add email notifs to zfs and smart

This commit is contained in:
2025-10-19 14:44:35 -05:00
parent ae04500e63
commit acc28d9278

View File

@@ -19,16 +19,31 @@ in {
boot.supportedFilesystems = ["zfs"]; boot.supportedFilesystems = ["zfs"];
# enable smart monitoring # enable smart monitoring
services.smartd.enable = true; services.smartd = {
enable = true;
notifications.mail = {
enable = true;
sender = "zfs@snowbelle.lan";
};
};
# enable zfs # enable zfs
services.zfs = { services.zfs = {
autoScrub.enable = true; autoScrub.enable = true;
autoScrub.interval = "weekly"; 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 # install userspace tools for acl's
environment.systemPackages = with pkgs; [ nfs-utils ]; environment.systemPackages = with pkgs; [smartmontools];
fileSystems."/holocron" = { fileSystems."/holocron" = {
device = "holocron"; device = "holocron";