-
-
Notifications
You must be signed in to change notification settings - Fork 16.5k
nixos/plymouth-tpm2-totp: init #424861
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
base: master
Are you sure you want to change the base?
nixos/plymouth-tpm2-totp: init #424861
Conversation
3da7aff
to
2ac481d
Compare
2ac481d
to
bc90eb7
Compare
|
||
assertions = [ | ||
{ | ||
assertion = cfg.enable -> config.boot.initrd.systemd.enable; |
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.
assertion = cfg.enable -> config.boot.initrd.systemd.enable; | |
assertion = config.boot.initrd.systemd.enable; |
correct me if i'm wrong, but the first part isn't needed right?
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.
Yep, that was redundant. Removed.
bc90eb7
to
2e01379
Compare
2e01379
to
a4db850
Compare
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.
Tested on my laptop like this:
1 run nix shell nixpkgs#tpm2-totp -c sudo tpm2-totp generate
2 save the secret
3 run nix shell nixpkgs#tpm2-totp -c sudo tpm2-totp calculate
4 compare the codes
5 enable boot.plymouth.tpm2-totp.enable
6 reboot
7 compare the codes
A documentation on how to set it up would be great though
The
Maybe the option description should mention that |
config = lib.mkIf cfg.enable { | ||
meta.maintainers = with lib.maintainers; [ majiir ]; |
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.
config = lib.mkIf cfg.enable { | |
meta.maintainers = with lib.maintainers; [ majiir ]; | |
meta.maintainers = with lib.maintainers; [ majiir ]; | |
config = lib.mkIf cfg.enable { |
I open https://github.com/tpm2-software/tpm2-totp/blob/master/README.md#setup-1 and try the first suggested command:
This is just awful
The number one complaint about NixOS is the (lack of) documentation. A |
Summary
tpm2-totp
.boot.plymouth.tpm2-totp
module for showing a TOTP during boot usingtpm2-totp
and Plymouth.Pings
@RaitoBezarius (
tpm2-totp
maintainer)Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.