zenix: new usbkey

This commit is contained in:
tristan 2024-11-29 20:25:16 +00:00
parent 937b71bac8
commit e7acefb8f2

View file

@ -32,7 +32,7 @@ in {
}; };
boot.initrd.luks.devices."usbkey" = { boot.initrd.luks.devices."usbkey" = {
device = "/dev/disk/by-id/usb-Generic_Flash_Disk_BCC97785-0:0"; device = "/dev/disk/by-label/usbkey1";
}; };
boot.initrd.luks.devices."cryptroot" = { boot.initrd.luks.devices."cryptroot" = {
@ -40,7 +40,7 @@ in {
keyFileSize = 4096; keyFileSize = 4096;
preOpenCommands = '' preOpenCommands = ''
mkdir -m 0755 -p /key mkdir -m 0755 -p /key
mount -n -t vfat -o ro /dev/mapper/usbkey /key mount -n -o ro /dev/mapper/usbkey /key
''; '';
keyFile = "/key/keyfile"; keyFile = "/key/keyfile";
preLVM = false; preLVM = false;