Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos/gnupg: unable to locate a valid pinentry command #92084

Closed
jonringer opened this issue Jul 2, 2020 · 4 comments
Closed

nixos/gnupg: unable to locate a valid pinentry command #92084

jonringer opened this issue Jul 2, 2020 · 4 comments

Comments

@jonringer
Copy link
Contributor

Describe the bug

continuation of #90214

using just programs.gnupg.agent.enable = true; doesn't create a fully valid gnupg installation, as the toolchain will also want to have access to a pinentry application.

gpg: agent_genkey failed: No pinentry
Key generation failed: No pinentry
gpgconf --check-programs
gpgconf: error running '/nix/store/dxf4w1gdp2x87d2q326a0064qnbvcl19-gnupg-2.2.20/bin/pinentry': probably not installed
gpg:OpenPGP:/nix/store/dxf4w1gdp2x87d2q326a0064qnbvcl19-gnupg-2.2.20/bin/gpg:1:1:
gpg-agent:Private Keys:/nix/store/dxf4w1gdp2x87d2q326a0064qnbvcl19-gnupg-2.2.20/bin/gpg-agent:1:1:
scdaemon:Smartcards:/nix/store/dxf4w1gdp2x87d2q326a0064qnbvcl19-gnupg-2.2.20/libexec/scdaemon:1:1:
gpgsm:S/MIME:/nix/store/dxf4w1gdp2x87d2q326a0064qnbvcl19-gnupg-2.2.20/bin/gpgsm:1:1:
dirmngr:Network:/nix/store/dxf4w1gdp2x87d2q326a0064qnbvcl19-gnupg-2.2.20/bin/dirmngr:1:1:
pinentry:Passphrase Entry:/nix/store/dxf4w1gdp2x87d2q326a0064qnbvcl19-gnupg-2.2.20/bin/pinentry:0:0:

To Reproduce
programs.gnupg.agent.enable = true; in configuration.nix

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Notify maintainers

Metadata
sent on behalf of someone else in discord. Personal environment is irrelevant.

@flokli
Copy link
Contributor

flokli commented Jul 8, 2020

@jonringer do you use home-manager or not? Is this a graphical or non-graphical system? Can you show us the output of systemctl --user cat gpg-agent.service?

@jonringer
Copy link
Contributor Author

I'm more or less just reposting what someone on discord had trouble with. Seemed like an issue with the service, unfortunately I forgot who it was, and I personally don't use the service. I'm going to close as I don't have any further context to move forward.

@flokli
Copy link
Contributor

flokli commented Jul 11, 2020

Yeah, I encourage that someone on discord to open a bugreport ;-)

This likely requires some back-and-forth to understand the problem and possible solutions.

@jonringer
Copy link
Contributor Author

My original assumption was that adding the package to environment.systemPackages would have fixed the user issue. Wasn't aware of the variants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants