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

@ -18,7 +18,10 @@
fsType = "ext4";
};
boot.initrd.luks.devices."luks-da40f6d2-49d7-4a55-8a2e-94fa5f28dbbc".device = "/dev/disk/by-uuid/da40f6d2-49d7-4a55-8a2e-94fa5f28dbbc";
boot.initrd.luks.devices."luks-da40f6d2-49d7-4a55-8a2e-94fa5f28dbbc" = {
device = "/dev/disk/by-uuid/da40f6d2-49d7-4a55-8a2e-94fa5f28dbbc";
allowDiscards = true;
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/B684-07FB";

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";