I’m trying to use a Nitrokey Start on GuixSD (an OS derived from NixOS) to no avail: GnuPG cannot find the card.
> gpg --card-status
gpg: selecting openpgp failed: No such device
gpg: OpenPGP card not available: No such device
There has been a discussion about it on Guix’ mailing list:
https://lists.gnu.org/archive/html/help-guix/2018-05/msg00159.html
In short, the issue is (probably) about installing the udev rules properly:
https://www.nitrokey.com/sites/default/files/41-nitrokey.rules
On Guix, the “plugdev” group does not exist and eudev is used instead of udev.
Thus the suggestion was to use the following rule instead:
(define %nitrokey-udev-rule
(udev-rule
"41-nitrokey.rules"
(string-append "ACTION==\"add\", SUBSYSTEM==\"usb\", "
"ATTR{idVendor}==\"20a0\", ATTR{idProduct}==\"4211\", "
"ENV{ID_SMARTCARD_READER}=\"1\", ENV{ID_SMARTCARD_READER_DRIVER}=\"gnupg\", GROUP+=\"users\", MODE=\"0666\"")))
(Note that since I only have a Nitrokey Start, I haven’t included the other rules in my setup.)
The above rule does not seem to have any effect.
Any clue?