Setup zfs autosnapshot on levitation
This commit is contained in:
parent
b59cd7615e
commit
db28833abc
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue