From: Pierre Neidhardt <mail@ambrevar.xyz>
To: Mike Gerwitz <mtg@gnu.org>, Raghav Gururajan <rvgn@disroot.org>
Cc: help-guix@gnu.org
Subject: Re: Adding NitoKey Rules to U-Dev Rules
Date: Sat, 06 Jul 2019 10:42:12 +0200 [thread overview]
Message-ID: <87lfxbd063.fsf@ambrevar.xyz> (raw)
In-Reply-To: <87d0iovu77.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1706 bytes --]
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:
--8<---------------cut here---------------start------------->8---
(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\"")))
; 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"))))))
--8<---------------cut here---------------end--------------->8---
Then modify the udev-service-type:
--8<---------------cut here---------------start------------->8---
(modify-services
%desktop-services
(udev-service-type config =>
(udev-configuration
(inherit config)
(rules (append (udev-configuration-rules config)
(list %nitrokey-udev-rule))))))
--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.
--
Pierre Neidhardt
https://ambrevar.xyz/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2019-07-06 8:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-05 19:56 Adding NitoKey Rules to U-Dev Rules Raghav Gururajan
2019-07-06 1:16 ` Mike Gerwitz
2019-07-06 8:42 ` Pierre Neidhardt [this message]
2019-07-06 21:01 ` Raghav Gururajan
2019-07-06 21:04 ` Raghav Gururajan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lfxbd063.fsf@ambrevar.xyz \
--to=mail@ambrevar.xyz \
--cc=help-guix@gnu.org \
--cc=mtg@gnu.org \
--cc=rvgn@disroot.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.