This commit is contained in:
2025-02-03 11:50:44 -05:00
parent 9381222d54
commit d010634dd1
10 changed files with 37 additions and 29 deletions

17
zfs.nix
View File

@@ -25,4 +25,21 @@ in
boot.supportedFilesystems = [ "zfs" ];
boot.zfs.extraPools = [ service_configs.zpool ];
services.zfs = {
autoScrub.enable = true;
trim.enable = true;
# doesn't work, maybe replace with `services.sanoid` instead
autoSnapshot = {
# attempted to manually set zpool, didn't work
flags = "-k -p -P ${service_configs.zpool}";
enable = true;
frequent = 4; # 15-minutes
hourly = 24;
daily = 7;
weekly = 4;
monthly = 12;
};
};
}