From b6aedb1dbe502efbdb6bdae80e50063d6cfd7a3c Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Fri, 13 Apr 2018 16:10:51 +0200 Subject: [PATCH] trim regulier sur SSD --- configuration.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configuration.nix b/configuration.nix index c308e7c..6425d5b 100644 --- a/configuration.nix +++ b/configuration.nix @@ -67,6 +67,8 @@ system.autoUpgrade.enable = true; systemd.services.nixos-upgrade.path = with pkgs; [ gzip gnutar xz.bin config.nix.package.out ]; + services.fstrim.enable = true; + nix.gc.automatic = true; nix.gc.options = "--delete-older-than 15d"; }