trim regulier sur SSD

This commit is contained in:
nyanloutre 2018-04-13 16:10:51 +02:00
parent a2227a6a2a
commit b6aedb1dbe
1 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,8 @@
system.autoUpgrade.enable = true; system.autoUpgrade.enable = true;
systemd.services.nixos-upgrade.path = with pkgs; [ gzip gnutar xz.bin config.nix.package.out ]; 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.automatic = true;
nix.gc.options = "--delete-older-than 15d"; nix.gc.options = "--delete-older-than 15d";
} }