From 31a60d57a749d70f0233e57e458cf003cd4a1d06 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Tue, 29 Oct 2024 20:57:09 +0100 Subject: [PATCH] scrub and trim --- share/common.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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;