change luks

This commit is contained in:
2023-11-23 00:49:24 +01:00
parent 33aa510335
commit 64dab4fdf3

View File

@@ -22,12 +22,12 @@
options = [ "subvol=root" ]; options = [ "subvol=root" ];
}; };
boot.initrd.luks = { boot.initrd = {
fido2Support = true; luks = {
# yubikeySupport = true; # yubikeySupport = true;
devices."nixos-enc" = { devices."nixos-enc" = {
crypttabExtraOpts = [ "fido2-device=auto" ];
device = "/dev/disk/by-uuid/7435d48f-f942-485b-9817-328ad3fc0b93"; device = "/dev/disk/by-uuid/7435d48f-f942-485b-9817-328ad3fc0b93";
fido2.passwordLess = true;
# yubikey = { # yubikey = {
# slot = 2; # slot = 2;
# twoFactor = false; # twoFactor = false;
@@ -37,6 +37,8 @@
# }; # };
}; };
}; };
systemd.enable = true;
};
fileSystems."/home" = fileSystems."/home" =
{ device = "/dev/disk/by-uuid/92284909-c5dd-4e0f-ab22-64157c8175cb"; { device = "/dev/disk/by-uuid/92284909-c5dd-4e0f-ab22-64157c8175cb";