Increase fstrim frequency
This commit is contained in:
parent
950fd1e7ee
commit
1e2da260cb
1 changed files with 9 additions and 6 deletions
|
@ -20,13 +20,16 @@
|
||||||
|
|
||||||
fileSystems."/persist".neededForBoot = true;
|
fileSystems."/persist".neededForBoot = true;
|
||||||
|
|
||||||
services.zfs = {
|
services = {
|
||||||
autoScrub.enable = true;
|
fstrimg.interval = "daily";
|
||||||
autoSnapshot = {
|
zfs = {
|
||||||
enable = true;
|
autoScrub.enable = true;
|
||||||
flags = "-k -p --utc";
|
autoSnapshot = {
|
||||||
|
enable = true;
|
||||||
|
flags = "-k -p --utc";
|
||||||
|
};
|
||||||
|
trim.interval = "daily";
|
||||||
};
|
};
|
||||||
trim.interval = "daily";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.initrd.postResumeCommands = lib.mkAfter ''
|
boot.initrd.postResumeCommands = lib.mkAfter ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue