add yubikey to luks
This commit is contained in:
parent
49e571c3d4
commit
aa38b2b1ee
1 changed files with 14 additions and 1 deletions
|
|
@ -22,7 +22,20 @@
|
||||||
options = [ "subvol=root" ];
|
options = [ "subvol=root" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.initrd.luks.devices."nixos-enc".device = "/dev/disk/by-uuid/7435d48f-f942-485b-9817-328ad3fc0b93";
|
boot.initrd.luks = {
|
||||||
|
yubikeySupport = true;
|
||||||
|
devices = [ {
|
||||||
|
name = "nixos-enc";
|
||||||
|
device = "/dev/disk/by-uuid/7435d48f-f942-485b-9817-328ad3fc0b93";
|
||||||
|
yubikey = {
|
||||||
|
slot = 2;
|
||||||
|
twoFactor = false;
|
||||||
|
storage = {
|
||||||
|
device = "/dev/nvme0n1p1";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
} ];
|
||||||
|
};
|
||||||
|
|
||||||
fileSystems."/home" =
|
fileSystems."/home" =
|
||||||
{ device = "/dev/disk/by-uuid/92284909-c5dd-4e0f-ab22-64157c8175cb";
|
{ device = "/dev/disk/by-uuid/92284909-c5dd-4e0f-ab22-64157c8175cb";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue