Increase fstrim frequency

This commit is contained in:
Vili Sinervä 2025-07-04 18:44:52 +03:00
parent 950fd1e7ee
commit 1e2da260cb
Signed by: Vili Sinervä
SSH key fingerprint: SHA256:FladqYjaE4scJY3Hi+gnShZ6ygnTJgixy0I6BAoHyos

View file

@ -20,13 +20,16 @@
fileSystems."/persist".neededForBoot = true;
services.zfs = {
autoScrub.enable = true;
autoSnapshot = {
enable = true;
flags = "-k -p --utc";
services = {
fstrimg.interval = "daily";
zfs = {
autoScrub.enable = true;
autoSnapshot = {
enable = true;
flags = "-k -p --utc";
};
trim.interval = "daily";
};
trim.interval = "daily";
};
boot.initrd.postResumeCommands = lib.mkAfter ''