From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Adding NitoKey Rules to U-Dev Rules Date: Sat, 06 Jul 2019 10:42:12 +0200 Message-ID: <87lfxbd063.fsf@ambrevar.xyz> References: <87d0iovu77.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:44248) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hjgHG-00041N-GI for help-guix@gnu.org; Sat, 06 Jul 2019 04:42:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hjgHC-0001pj-MV for help-guix@gnu.org; Sat, 06 Jul 2019 04:42:36 -0400 In-Reply-To: <87d0iovu77.fsf@gnu.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Mike Gerwitz , Raghav Gururajan Cc: help-guix@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I bought 1 year ago and did not succeed in getting it to work on Guix. Haven't tried in a while though. Regarding the Udev rule: in your operating system declaration, you can try one of those 2 rules: =2D-8<---------------cut here---------------start------------->8--- (define %nitrokey-udev-rule (udev-rule "41-nitrokey.rules" (string-append "ACTION=3D=3D\"add\", SUBSYSTEM=3D=3D\"usb\", " "ATTR{idVendor}=3D=3D\"20a0\", ATTR{idProduct}=3D=3D\"421= 1\", " "ENV{ID_SMARTCARD_READER}=3D\"1\", ENV{ID_SMARTCARD_READE= R_DRIVER}=3D\"gnupg\", GROUP+=3D\"users\", MODE=3D\"0666\""))) ; or (define %nitrokey-udev-rule (file->udev-rule "41-nitrokey.rules" (let ((version "20170910")) (origin (method url-fetch) (uri "https://www.nitrokey.com/sites/default/files/41-nitrokey.rules= ") (sha256 (base32 "127nghkfd4dl5mkf5xl1mij2ylxhkgg08nlh912xwrrjyjv4y9sa")))))) =2D-8<---------------cut here---------------end--------------->8--- Then modify the udev-service-type: =2D-8<---------------cut here---------------start------------->8--- (modify-services %desktop-services (udev-service-type config =3D> (udev-configuration (inherit config) (rules (append (udev-configuration-rules config) (list %nitrokey-udev-rule)))))) =2D-8<---------------cut here---------------end--------------->8--- For me, it seemed that the Udev rules worked, but after that any attempt to use the key with GPG would segfault `gpg`! :( Hopefully this has been fixed upstream. =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl0gXuQACgkQm9z0l6S7 zH8/XQf+LDb+TiHhn9V3Gp3UPWL2ayHmqPbdVYiBuGBUS77aYZXKP5H3P2gs2x81 e2O0cG2JcVVxN0LoUohzQhMvhjvFk6a7EGhOm7dY02E2GDxdDRmGWmRaBNef/8tU eaS+sFfNf+y3evRGgYaCX8Q+hC00Bd6nm0HlqMtT3n8kgltYaQsoklki84SlKnLO BrcMIrxl7fR5FZi/k+Gb1FC3bwVhkViLtKzx/dM71/nPDpO9xFJivECoqbMs5mtD Zu2rAq5PCPb4e/a8Y90JR5MY40wlE8qnBYLEC5MnAPqVLXeCFOFSghfmOTN1M3BV T0HO2gmGItdnSH26y5/0INQncE+x8Q== =2pa9 -----END PGP SIGNATURE----- --=-=-=--