Enable zfs zed

This commit is contained in:
Chris Dombroski 2024-04-26 18:09:44 -04:00
parent e89620677a
commit b0117456b1

View file

@ -383,14 +383,16 @@
# Enable the OpenSSH daemon.
services.openssh.enable = true;
services.zfs.autoScrub.enable = true;
# services.zfs.zed.settings = {
# ZED_EMAIL_ADDR = [ "cdombroski@gmail.com" ];
# ZED_EMAIL_PROG = "${pkgs.msmtp}/bin/msmtp";
# ZED_EMAIL_OPTS = "@ADDRESS@";
# ZED_USE_ENCLOSURE_LEDS = true;
# ZED_SCRUB_AFTER_RESILVER = true;
# };
# services.zfs.zed.enableMail = false;
services.zfs.zed.settings = {
ZED_EMAIL_ADDR = [ "root" ];
ZED_EMAIL_PROG = "${pkgs.msmtp}/bin/msmtp";
ZED_EMAIL_OPTS = "@ADDRESS@";
ZED_NOTIFY_INTERVAL_SECS = 3600;
ZED_NOTIFY_VERBOSE = true;
ZED_USE_ENCLOSURE_LEDS = true;
ZED_SCRUB_AFTER_RESILVER = true;
};
services.zfs.zed.enableMail = false;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];