365UXOJVR5ILJWRUXUIRNVIKJVR2TWJYHTU5JVDZ766X3EGRMPJAC
LZIQRWBWLIKS3X55AJB3TYBLYIPYIO5OK3XI3J47K3ZNGHFTST5AC
H3GYCX27WTONFBIJN7UIV26LJSCENQJC4XXIOEYINXJLEDGKYJJQC
S5GPMMOWQ7AAMERJR4CAOU3QEINCLCSG5OAI4R2HJE3NF6DJSWRQC
QLUEKPCGVQEAEYTHI6Z2LKEHAOG4RYGCDNQYYPUF4MEEKUEW3TEAC
BC2AG5SO42IKPQPBAHZULJDX7CYL56QLO6PATDGYOD6WV6V7P23AC
BYZGRIFZY253OFK442SR6X743U4LAX4NLFBQ4XPKXEDPPXNNUM4AC
CM2R5CCC4BV75P2MBA4X6OS2H6GQ5BAS34LSU6Y5X3SVKBAFT24AC
HXGZ6XUYMSCPRWR3DFD5BTNXTYPQDN4ST2WOVFX5GKD72RX5XLDAC
PAT7GTD5QRX3EZ5VNJJIR4I7MDK3GPCLU37PBGQ4QWWBZW2HUHZAC
EVVP46IQ4U6JEDWVJ4D6KT77ABOMY7XKIO2ITX4DHJDRTGTYCUTQC
};
programs.msmtp = let
mail = "alert@nrab.lol";
in {
enable = true;
setSendmail = true;
defaults = {
aliases = pkgs.writeText "mail-aliases" ''
${user}: nikodem@rabulinski.com
root: ${mail}
'';
tls = "on";
auth = "login";
tls_starttls = "off";
};
accounts = {
default = {
host = "mail.nrab.lol";
passwordeval = "cat ${../../assets/alertplaintext}";
user = mail;
from = mail;
};
};
services.zfs.autoScrub.enable = true;
services.zfs = {
autoScrub.enable = true;
zed.settings = {
ZED_DEBUG_LOG = "/tmp/zed.debug.log";
ZED_EMAIL_ADDR = [ user ];
ZED_EMAIL_PROG = "${pkgs.msmtp}/bin/msmtp";
ZED_EMAIL_OPTS = "@ADDRESS@";
ZED_NOTIFY_INTERVAL_SECS = 3600;
ZED_NOTIFY_VERBOSE = true;