29 lines
530 B
Nix
29 lines
530 B
Nix
{
|
|
username,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
boot = {
|
|
supportedFilesystems = [ "zfs" ];
|
|
zfs.extraPools = [ "yottapool" ];
|
|
|
|
};
|
|
|
|
services.zfs = {
|
|
autoScrub.enable = true;
|
|
zed.settings = {
|
|
ZED_DEBUG_LOG = "/tmp/zed.debug.log";
|
|
ZED_EMAIL_ADDR = [ username ];
|
|
ZED_EMAIL_PROG = lib.getExe pkgs.msmtp;
|
|
ZED_EMAIL_OPTS = "@ADDRESS@";
|
|
|
|
ZED_NOTIFY_INTERVAL_SECS = 3600;
|
|
ZED_NOTIFY_VERBOSE = true;
|
|
|
|
ZED_USE_ENCLOSURE_LEDS = true;
|
|
ZED_SCRUB_AFTER_RESILVER = true;
|
|
};
|
|
};
|
|
}
|