1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-12-23 10:09:44 +01:00

enable fstrim on SSDs

This will run TRIM once a week using a systemd timer. Running TRIM regularly
will improves the performance and increases the SSDs lifespan. Since it is based
on the utillinux no additional package is required.
This commit is contained in:
Jörg Thalheim 2019-07-23 09:04:03 +01:00
parent 54268d11ae
commit e1a10b1536
No known key found for this signature in database
GPG key ID: B3F5D81B0C6967C4

View file

@ -4,4 +4,6 @@
boot.kernel.sysctl = {
"vm.swappiness" = lib.mkDefault 1;
};
services.fstrim.enable = lib.mkDefault true;
}