Compare commits

...

2 commits

Author SHA1 Message Date
Harald Hoyer 15963f0554 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.
2024-08-26 10:14:18 +02:00
Harald Hoyer 4c100acb27 fix: remove extraneous newlines in hardware-configuration.nix
Removed unnecessary blank lines to improve readability and maintain consistency with the formatting guidelines. This change does not impact functionality but cleans up the code.
2024-08-26 10:14:03 +02:00
2 changed files with 9 additions and 5 deletions

View file

@ -39,7 +39,4 @@
}; };
swapDevices = [{ device = "/swapfile"; }]; swapDevices = [{ device = "/swapfile"; }];
} }

View file

@ -31,8 +31,15 @@
options = [ "subvol=@" ]; 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-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"; 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" = fileSystems."/boot" =
{ {