Skip to content

Commit

Permalink
enable fstrim on SSDs
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Mic92 committed Jul 23, 2019
1 parent 54268d1 commit e1a10b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/pc/ssd/default.nix
Expand Up @@ -4,4 +4,6 @@
boot.kernel.sysctl = {
"vm.swappiness" = lib.mkDefault 1;
};

services.fstrim.enable = lib.mkDefault true;
}

0 comments on commit e1a10b1

Please sign in to comment.