*Problem*

The gpg-agent doesn't launch even though I've configured it in my
home-config.scm.
Thus running gpg --full-generate-key falls over when calling the pinentry
daemon.

*Context*

The context is that I've i. set up my own Guix channel in a git repository.
In order to ii. be referenced from my channels.scm file.
That channel configuration requires a reference to my git repo/channel,
references a gpg-signed commit.

(use-modules (gnu home)
             (gnu home services)
             (gnu home services gnupg)
             (gnu packages gnupg)
             (guix gexp))

(home-environment

  (packages
   (list gnupg))

  (services
   (list
    (service home-gpg-agent-service-type
             (home-gpg-agent-configuration

              ;; Use terminal-based pinentry
              (pinentry-program
               (file-append pinentry-curses "/bin/pinentry-curses"))
              (ssh-support? #t))))))

*Troubleshooting*

I've tried all the commands I can think of to launch the gpg agent. It's
just not happening.

guix home reconfigure home-config.scm
gpg --list-keys
gpgconf --kill gpg-agent

herd status shows that the gpg-agent service has started.

herd status
Started:
 + gpg-agent
 + root


But ps aux | grep gpg doesn't show anything.
And gpg key generation can't connect to the pinentry daemon. Trying to
generate a keypair gives me this error... What am I missing in this setup?

gpg --full-generate-key
...
gpg: agent_genkey failed: No pinentry
Key generation failed: No pinentry


Tim

Reply via email to