hosts/youko: move zfs pool

This commit is contained in:
Nikodem Rabuliński 2025-01-16 16:27:46 +01:00
parent 3622d231f8
commit f369c754a3
Signed by: nrabulinski
SSH key fingerprint: SHA256:eJRdE3KzMWWk9zrksGEv8+v6F+VqUVR++z2SSPyiL0I
3 changed files with 69 additions and 0 deletions

29
hosts/youko/nas.nix Normal file
View file

@ -0,0 +1,29 @@
{
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;
};
};
}