Set allowDiscards to enable NVMe TRIM

This commit is contained in:
Chandler Swift 2025-12-21 11:41:35 -06:00
parent 8685dece56
commit 36df179501
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F
2 changed files with 8 additions and 2 deletions

View file

@ -32,7 +32,10 @@
fsType = "ext4";
};
boot.initrd.luks.devices."luks-8ecd33f4-36cf-44f2-b215-5e67887418b9".device = "/dev/disk/by-uuid/8ecd33f4-36cf-44f2-b215-5e67887418b9";
boot.initrd.luks.devices."luks-8ecd33f4-36cf-44f2-b215-5e67887418b9" = {
device = "/dev/disk/by-uuid/8ecd33f4-36cf-44f2-b215-5e67887418b9";
allowDiscards = true;
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/24AC-733A";