summaryrefslogtreecommitdiff
path: root/share/common.nix
diff options
context:
space:
mode:
Diffstat (limited to 'share/common.nix')
-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;