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/modules/services/hardware/u2f: init #32069
Conversation
mkdir -p $out/etc/udev/rules.d | ||
ln -s ${pkgs.libu2f-host}/lib/udev/rules.d/70-u2f.rules $out/etc/udev/rules.d/70-u2f.rules | ||
''; | ||
}); |
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.
Why not services.udev.packages = [ pkgs.libu2f-host ];
? To save disk space?
cfg = config.services.u2f; | ||
in { | ||
options = { | ||
services.u2f = { |
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.
Perhaps "hardware.u2f" namespace is better than "services.u2f".
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.
Good idea thanks
Thanks @bjornfor, tested again and everything seems to work after unplugging and replugging the device. |
Thank you! I've been wondering how to get my yubikey working for ages. I didn't know about |
thanks to NixOS/nixpkgs#32069
Applied to master (5a5325d). Thanks! |
thanks to NixOS/nixpkgs#32069
thanks to NixOS/nixpkgs#32069
Motivation for this change
Yubikeys requires special hidraw device permissions to be usable in eg Chrome.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)