all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Raghav Gururajan <rvgn@disroot.org>
To: Pierre Neidhardt <mail@ambrevar.xyz>, Mike Gerwitz <mtg@gnu.org>
Cc: help-guix@gnu.org
Subject: Re: Adding NitoKey Rules to U-Dev Rules
Date: Sat, 06 Jul 2019 17:01:13 -0400	[thread overview]
Message-ID: <0153daef12942ca6f0189bc04bb746ebeb6b065d.camel@disroot.org> (raw)
In-Reply-To: <87lfxbd063.fsf@ambrevar.xyz>


> Regarding the Udev rule: in your operating system declaration, you
> can
> try one of those 2 rules:

Thank you very much for your effort in explaining the following. Much
appreciated ☺

> 
> --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\"")))
> 

Hmm. The other one (below) seems straight forward and simpler. 😉 Thank
s though. :)

> 
> (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"))))))

Thanks a lot again! Would you be able to add this definition
(%nitrokey-udev-rule) into master udev definitions in guix? So that any
user who wants to use these rules now or in future, can just modify
%desktop-services and append %nitrokey-udev-rule, as you suggested
below. ☺

> --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---

Gonna try ☺

> 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.

Ah I see. 😕

Regards,
RG.

  reply	other threads:[~2019-07-06 21:01 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
2019-07-06 21:01     ` Raghav Gururajan [this message]
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=0153daef12942ca6f0189bc04bb746ebeb6b065d.camel@disroot.org \
    --to=rvgn@disroot.org \
    --cc=help-guix@gnu.org \
    --cc=mail@ambrevar.xyz \
    --cc=mtg@gnu.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.