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