Enable unlocking LUKS with USB keyfile

This commit is contained in:
Vili Sinervä 2024-08-31 16:26:25 +03:00
parent 097ed1b75a
commit e382869190
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996

View file

@ -82,6 +82,11 @@
];
boot = {
initrd.luks.devices."luks-f6e1979b-0dee-4ee9-8170-10490019854b" = {
keyFileSize = 8192;
keyFile = "/dev/disk/by-id/usb-Kingston_DataTraveler_3.0_E0D55EA5741216B0A93E02B3-0:0";
fallbackToPassword = true;
};
resumeDevice = "/dev/mapper/luks-f6e1979b-0dee-4ee9-8170-10490019854b";
kernelParams = [ "resume_offset=44537856" ];