smartd emails working

This commit is contained in:
2026-05-01 01:48:33 -05:00
parent 2b3c0e71d5
commit 6f1a27648d
@@ -19,6 +19,8 @@ in {
# enable zfs support # enable zfs support
boot.kernelModules = ["zfs"]; boot.kernelModules = ["zfs"];
boot.supportedFilesystems = ["zfs"]; boot.supportedFilesystems = ["zfs"];
# boot.initrd.services.zfs.enable = true;
# boot.zfs.requestEncryptionCredentials = true;
# arc cache size # arc cache size
boot.kernelParams = [ "zfs.zfs_arc_max=12884901888" ]; boot.kernelParams = [ "zfs.zfs_arc_max=12884901888" ];
@@ -27,13 +29,18 @@ in {
#boot.zfs.extraPools = [ "holocron" ]; #boot.zfs.extraPools = [ "holocron" ];
# enable smart monitoring # enable smart monitoring
services.smartd = { services.smartd = {
enable = true; enable = true;
autodetect = true; autodetect = true;
defaults.monitored = "-a -o on -s (S/../.././05|L/../01/./05)"; defaults.monitored = "-a -o on -s (S/../.././05|L/../01/./05)";
notifications.mail = { notifications = {
enable = true; test = true;
sender = "zfs@snowbelle.lan"; mail = {
enable = true;
recipient = "blake";
sender = "alerts@blakedheld.xyz";
};
}; };
}; };
@@ -43,9 +50,9 @@ in {
autoScrub.interval = "weekly"; autoScrub.interval = "weekly";
# email notifs # email notifs
zed = { zed = {
#enableMail = true; enableMail = true;
settings = { settings = {
ZED_EMAIL_ADDR = ["root"]; ZED_EMAIL_ADDR = ["root" "blake"];
# send notification if scrub succeeds # send notification if scrub succeeds
ZED_NOTIFY_VERBOSE = true; ZED_NOTIFY_VERBOSE = true;
}; };
@@ -76,7 +83,7 @@ in {
host = "smtp.mail.me.com"; host = "smtp.mail.me.com";
user = "bdhelderman@icloud.com"; user = "bdhelderman@icloud.com";
from = "alerts@blakedheld.xyz"; from = "alerts@blakedheld.xyz";
passwordeval = "cat ${sec."email_pass".path}"; passwordeval = "/run/current-system/sw/bin/cat ${sec."email_pass".path}";
}; };
}; };