turn on fstrim for ssds

This commit is contained in:
Noah Masur 2023-03-05 23:07:03 -05:00
parent ebacff7250
commit 59bd3590a4
2 changed files with 8 additions and 0 deletions

View File

@ -3,6 +3,7 @@
imports = [ imports = [
./audio.nix ./audio.nix
./boot.nix ./boot.nix
./disk.nix
./keyboard.nix ./keyboard.nix
./monitors.nix ./monitors.nix
./mouse.nix ./mouse.nix

View File

@ -0,0 +1,7 @@
{ config, pkgs, lib, ... }: {
# Enable fstrim, which tracks free space on SSDs for garbage collection
# More info: https://www.reddit.com/r/NixOS/comments/rbzhb1/if_you_have_a_ssd_dont_forget_to_enable_fstrim/
services.fstrim.enable = true;
}