From e7acefb8f2afafc2cc708486ceb489c4bd05b8ce Mon Sep 17 00:00:00 2001 From: tristan Date: Fri, 29 Nov 2024 20:25:16 +0000 Subject: [PATCH] zenix: new usbkey --- hardware/zenix.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware/zenix.nix b/hardware/zenix.nix index f0ce359..e3fe37a 100644 --- a/hardware/zenix.nix +++ b/hardware/zenix.nix @@ -32,7 +32,7 @@ in { }; 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" = { @@ -40,7 +40,7 @@ in { keyFileSize = 4096; preOpenCommands = '' 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"; preLVM = false;