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
nixos/luksroot: GPG Smartcard support for luks encrypted volumes in initrd #60372
Conversation
description = '' | ||
The option to use this LUKS device with a GPG encrypted luks password by the GPG Smartcard. | ||
If null (the default), GPG-Smartcard will be disabled for this device. | ||
Yubikey and GPG Card may not be used at the same time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you can't use yubikey and gpg card at the same time, you may want to add an assertion to config.assertions
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@artemist I have added the assertion.
This PR broken older PR for trezor support, check #60774 |
} | ||
''} | ||
|
||
${if (luks.yubikeySupport && (yubikey != null)) || (luks.gpgSupport && (gpgCard != null)) then '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So if there will be 10 or 20 HW ways how to open luks device, this IF will be endless ?
Motivation for this change
I do want to decrypt my luks volumes with a gpg smart card.
You manually have to encrypt the passphrase for the decryption of luks and specify the gpg encrypted file.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)