-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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/hardware/gnupg-ccid: init udev rules #121085
Conversation
Ah nice, to make things more confusing, the gnupg pointed me at debians' rules, which are much more expansive, and go-figure, include yubikey's identifiers too... ... so... maybe I'll update these rules to include the full debian list. And I guess users who activate this AND manually link the yk package in |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/home-manager-users-can-help-test-gnupg-2-3-1-beta/12692/8 |
6e3a5ef
to
b245fc1
Compare
c047afd
to
7242cd0
Compare
# https://www.gnupg.org/howtos/card-howto/en/gnupg-ccid.rules | ||
# https://www.gnupg.org/howtos/card-howto/en/gnupg-ccid | ||
|
||
# but then: https://dev.gnupg.org/T5409 | ||
# https://salsa.debian.org/debian/gnupg2/-/blob/debian/main/debian/scdaemon.udev | ||
|
||
# per https://man7.org/linux/man-pages/man1/dh_installudev.1.html | ||
# it looks like the default level prefix is 60-... |
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.
I think it wouldn't hurt to add a sentence or two about the links.
229683a
to
7351d1c
Compare
I marked this as stale due to inactivity. → More info |
7351d1c
to
c10f78d
Compare
This is still relevant, and I think going to be really important for users upgrading to 2.3.3. I think other distros have this on by default .... like debian. |
c10f78d
to
ec11bcf
Compare
ec11bcf
to
58a85eb
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 OK on Yubikey 5 with gnupg 2.3.3 from #145434
(Did not work with "076b:3031 OmniKey AG OMNIKEY 3x21 Smart Card Reader" even adding a rule for it)
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.
LGTM
Motivation for this change
Gnupg apparently has udev rules for enabling it to access CCID devices.
This provides a NixOS module that will enable those udev rules.
I think they work, but I'm not sure if it's these rules or the yubikey rules kicking in, I need to do further testing.
I think this is potentially going to be needed for gnupg-2.3 users that get pushed into the CCID route (now that gnupg-2.3 doesn't fallback from CCID failures to PC/SC mode automatically, and there are blooming reports of pcscd problems in nixos-unstable...)
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)