add yubikey to luks
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user