scrub and trim

This commit is contained in:
Christoph Cullmann 2024-10-29 20:57:09 +01:00
parent aa7e22b237
commit 31a60d57a7
No known key found for this signature in database

View file

@ -112,6 +112,18 @@ in
depends = [ "/data" ];
};
# trim the disks weekly
services.fstrim = {
enable = true;
interval = "weekly";
};
# scrub the disks weekly
services.btrfs.autoScrub = {
enable = true;
interval = "weekly";
};
# keep some stuff persistent
environment.persistence."/nix/persistent" = {
hideMounts = true;