-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1FA with YubiKey OR password #7
Comments
Sorry, I know it's been forever. This is definitely possible. Normally, NixOS will wait for a specified timeout for the Yubikey, and then fallback to manual entry. What you'll want to do is set up the Yubikey for PBA, as mentioned in this guide. Then add another key with |
@sgillespie can you add a passphrase after this has been setup, similar to my other comment, luksAddKey requests "Enter any existing passphrase:" which seems to be a challenge when you used this initial setup. |
Yes I believe this is possible. You'll need to calculate the existing passphrase, though. I created a script to open the device here: https://github.com/sgillespie/nixos-yubikey-luks/blob/master/yk-luks-open.sh. I think you can modify the last line to print the key, rather than opening the device. |
@sgillespie thanks I found this in the official NixOS documentation, this worked for me :)
|
I know it's probably not a traditional setup, but I'm wondering if I can use YubiKey or password for 1FA. If YubiKey is not present, I would enter my password. Otherwise, YubiKey would open the luks partition.
Is it possible?
Thanks in advance!
The text was updated successfully, but these errors were encountered: