dotfiles/modules/nixos/hardware/disk.nix

8 lines
269 B
Nix
Raw Normal View History

2024-05-05 03:05:55 +00:00
{ config, lib, ... }:
2024-04-20 13:42:06 +00:00
{
2023-03-06 04:07:03 +00:00
# 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/
2024-05-05 03:05:55 +00:00
services.fstrim.enable = lib.mkIf config.physical true;
2023-03-06 04:07:03 +00:00
}