diff --git a/share/common.nix b/share/common.nix index 8dbf427..348e665 100644 --- a/share/common.nix +++ b/share/common.nix @@ -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;