diff --git a/nodes/heptifili/modules/zfs.nix b/nodes/heptifili/modules/zfs.nix index bb2f08f..49947c6 100644 --- a/nodes/heptifili/modules/zfs.nix +++ b/nodes/heptifili/modules/zfs.nix @@ -12,4 +12,24 @@ extraPools = [ "data" ]; }; }; + + services.zfs = { + autoScrub = { + enable = true; + interval = "monthly"; + pools = [ ]; # Empty List scrubs all mounted pools + }; + autoSnapshot = { + enable = true; + flags = "-k -p -u"; + frequent = 4; + hourly = 24; + daily = 7; + monthly = 12; + }; + trim = { + enable = true; + interval = "weekly"; + }; + }; }