diff options
author | Christoph Cullmann <cullmann@kde.org> | 2024-05-31 17:43:39 +0200 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2024-05-31 17:43:39 +0200 |
commit | f9bdd238fb0f9992cd410c73212b8924345e4bc4 (patch) | |
tree | c2949d3d438cacf7899b8ad006ea3f96a4a73987 /common.nix | |
parent | 3ac6cd9dc19ab3f9cf84cb846eee8fc53febcc3d (diff) |
more zfs services
Diffstat (limited to 'common.nix')
-rw-r--r-- | common.nix | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -109,6 +109,10 @@ in ]; }; + # ZFS services + services.zfs.autoScrub.enable = true; + services.zfs.trim.enable = true; + # enable fast dbus services.dbus.implementation = "broker"; @@ -425,6 +429,25 @@ in }; }; + # send mails on ZFS events + services.zfs.zed = { + settings = { + ZED_DEBUG_LOG = "/tmp/zed.debug.log"; + 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; + }; + + # this option does not work; will return error + enableMail = false; + }; + environment.etc = { "aliases" = { text = '' |