nixbook: replace usbkey
This commit is contained in:
parent
53f5a52ceb
commit
bf8e3e78d8
2 changed files with 4 additions and 3 deletions
|
|
@ -6,7 +6,6 @@
|
|||
...
|
||||
}: let
|
||||
user = config.user;
|
||||
decrypt = import ../lib/decrypt.nix;
|
||||
in {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
|
|
@ -24,7 +23,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" = {
|
||||
|
|
@ -32,7 +31,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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue