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