add yubikey to luks

This commit is contained in:
2023-09-07 09:24:17 +02:00
parent 49e571c3d4
commit aa38b2b1ee

View File

@@ -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";