feat: enable discard support for LUKS devices

Updated LUKS device configurations to include allowDiscards option. This allows the system to send discard/TRIM commands to LUKS devices for better performance.
This commit is contained in:
Harald Hoyer 2024-08-26 10:14:18 +02:00
parent 4c100acb27
commit 15963f0554

View file

@ -31,8 +31,15 @@
options = [ "subvol=@" ];
};
boot.initrd.luks.devices."luks-0e2792db-1b80-49a7-b2eb-54e4b5fc3502".device = "/dev/disk/by-uuid/0e2792db-1b80-49a7-b2eb-54e4b5fc3502";
boot.initrd.luks.devices."luks-280f2e07-e5fc-478e-b7ee-445c99bea415".device = "/dev/disk/by-uuid/280f2e07-e5fc-478e-b7ee-445c99bea415";
boot.initrd.luks.devices."luks-0e2792db-1b80-49a7-b2eb-54e4b5fc3502" = {
device = "/dev/disk/by-uuid/0e2792db-1b80-49a7-b2eb-54e4b5fc3502";
allowDiscards = true;
};
boot.initrd.luks.devices."luks-280f2e07-e5fc-478e-b7ee-445c99bea415" = {
device = "/dev/disk/by-uuid/280f2e07-e5fc-478e-b7ee-445c99bea415";
allowDiscards = true;
};
fileSystems."/boot" =
{