mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 14:35:37 +00:00
turn on fstrim for ssds
This commit is contained in:
parent
ebacff7250
commit
59bd3590a4
@ -3,6 +3,7 @@
|
||||
imports = [
|
||||
./audio.nix
|
||||
./boot.nix
|
||||
./disk.nix
|
||||
./keyboard.nix
|
||||
./monitors.nix
|
||||
./mouse.nix
|
||||
|
7
modules/nixos/hardware/disk.nix
Normal file
7
modules/nixos/hardware/disk.nix
Normal 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;
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user