From 76bdafcb5c66f65a8d7bd11a99cb6fad6c75e4cd Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sat, 24 Aug 2024 18:50:19 +0200 Subject: [PATCH] trim the disks weekly --- share/common.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/share/common.nix b/share/common.nix index 3ce40f2..427e036 100644 --- a/share/common.nix +++ b/share/common.nix @@ -226,6 +226,12 @@ in allowReboot = false; }; + # trim the disks weekly + services.fstrim = { + enable = true; + interval = "weekly"; + }; + # avoid suspend ever to be triggered systemd.targets.sleep.enable = false; systemd.targets.suspend.enable = false;