summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorChristoph Cullmann <christoph@cullmann.io>2024-08-24 18:50:19 +0200
committerChristoph Cullmann <christoph@cullmann.io>2024-08-24 18:50:19 +0200
commit76bdafcb5c66f65a8d7bd11a99cb6fad6c75e4cd (patch)
treedad5df36175f2f183fc3f3d208c974e94afc79b5 /share
parenta31b37a6904397192ff025d7af0dd342322103ff (diff)
trim the disks weekly
Diffstat (limited to 'share')
-rw-r--r--share/common.nix6
1 files changed, 6 insertions, 0 deletions
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;