Setup zfs autosnapshot on levitation

This commit is contained in:
Nathan McCarty 2023-07-07 06:06:44 -04:00
parent b59cd7615e
commit db28833abc
Signed by: thatonelutenist
SSH Key Fingerprint: SHA256:hwQEcmak9E6sdU9bXc98RHw/Xd1AhpB5HZT7ZSVJkRM
1 changed files with 18 additions and 2 deletions

View File

@ -97,8 +97,24 @@ in {
# ZFS # ZFS
boot.supportedFilesystems = [ "zfs" ]; boot.supportedFilesystems = [ "zfs" ];
boot.zfs.forceImportRoot = false; boot.zfs = {
boot.zfs.extraPools = [ "bigssd" ]; forceImportRoot = false;
extraPools = [ "bigssd" ];
};
services.zfs = {
autoScrub = {
enable = true;
interval = "Sun, 00:00";
};
autoSnapshot = {
enable = true;
frequent = 4;
hourly = 24;
daily = 7;
weekly = 2;
monthly = 2;
};
};
# Generated with head -c4 /dev/urandom | od -A none -t x4 # Generated with head -c4 /dev/urandom | od -A none -t x4
networking.hostId = "bc94e9d3"; networking.hostId = "bc94e9d3";
} }