From 10ca572aec0f15cb177493291b924de59826ab23 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Tue, 12 Sep 2023 16:39:45 +0200 Subject: [PATCH] Enable fstrim service --- m/common/fs.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/m/common/fs.nix b/m/common/fs.nix index 60fccef..10339d0 100644 --- a/m/common/fs.nix +++ b/m/common/fs.nix @@ -6,6 +6,9 @@ fsType = "ext4"; }; + # Trim unused blocks weekly + services.fstrim.enable = true; + swapDevices = [ { device = "/dev/disk/by-label/swap"; } ];