changes
This commit is contained in:
17
zfs.nix
17
zfs.nix
@@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user