[Nix-dev] GPG on NixOS

Robert Stark robberer at freakmail.de
Fri Jul 18 08:38:08 CEST 2014


Hi Mateusz,

i use GPG on NixOS and i think you need the following in your
~/.gnupg/gpg-agent.conf :

pinentry-program ~/.nix-profile/bin/pinentry

I don't know why we need the old GnuPG Version. But gnupg-2.0.24 contains a
gpg2 binary.


On Fri, Jul 18, 2014 at 2:36 AM, Mateusz Kowalczyk <fuuzetsu at fuuzetsu.co.uk>
wrote:

> Hi,
>
> I've been tryin to sign a git tag with my private key but I am failing:
>
> [shana at lenalee:~/programming/haddock]$ git tag -a -s
> haddock-2.14.3-release -m "Haddock version 2.14.3 release"
>
> You need a passphrase to unlock the secret key for
> user: "Mateusz Kowalczyk (Main key) <fuuzetsu at fuuzetsu.co.uk>"
> 4096-bit RSA key, ID 2ADA9A97, created 2013-01-31
>
> gpg-agent[15413]: can't connect to the PIN entry module: IPC connect
> call failed
> gpg-agent[15413]: command get_passphrase failed: No pinentry
> gpg: problem with the agent: No pinentry
> gpg: skipped "2ADA9A97": Operation cancelled
> gpg: signing failed: Operation cancelled
> error: gpg failed to sign the data
> error: unable to sign the tag
>
> I have used nix-env -i to install ‘pinentry’ but that changed nothing.
> Looking online, I see a person on IRC with the same problem but when
> trying to create a key which makes me think the whole thing is broken.
>
> Is anyone successfully using GPG on NixOS?
>
> A relevant question is why we have gnupg and gnupg1compat: how do they
> differ and why do we need both? I notice that only gnupg1compat provides
> a ‘gpg’ binary needed by git.
>
> --
> Mateusz K.
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140718/49534f48/attachment-0001.html 


More information about the nix-dev mailing list