diff options
author | Kenny Ballou <kb@devnulllabs.io> | 2022-03-23 14:16:06 -0600 |
---|---|---|
committer | Kenny Ballou <kb@devnulllabs.io> | 2022-03-23 14:16:06 -0600 |
commit | ebaa28d22ab48fd27de2dfdacb5c724d00a16647 (patch) | |
tree | d7c456fb48c94485e65fb6c2f35e615eb15ec049 /kbg/services | |
parent | 51d74beff4042feb98ca7403cd3683a240c72eda (diff) | |
download | dotfiles-ebaa28d22ab48fd27de2dfdacb5c724d00a16647.tar.gz dotfiles-ebaa28d22ab48fd27de2dfdacb5c724d00a16647.tar.xz |
config: gnupg: fix gpg-agent decryption
Decryption would fail with no pinentry error, generating a new agent
configuration which includes a reference to a default pinentry program
seems to resolve the issue.
Signed-off-by: Kenny Ballou <kb@devnulllabs.io>
Diffstat (limited to 'kbg/services')
-rw-r--r-- | kbg/services/config/gnupg.scm | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/kbg/services/config/gnupg.scm b/kbg/services/config/gnupg.scm index 442a0119..3a851f9c 100644 --- a/kbg/services/config/gnupg.scm +++ b/kbg/services/config/gnupg.scm @@ -2,14 +2,24 @@ #:use-module (kbg) #:use-module (gnu) #:use-module (guix) + #:use-module (gnu packages gnupg) #:use-module (gnu home services)) +(define gpg-agent-config + (mixed-text-file "gpg-agent.conf" + "enable-ssh-support\n" + "pinentry-program " pinentry-gnome3 "/bin/pinentry-gnome3\n" + "default-cache-ttl 28800\n" + "max-cache-ttl 43200\n" + "allow-emacs-pinentry\n" + "allow-loopback-pinentry\n")) + (define-public gnupg-config-service (list (simple-service 'gnupg-config home-files-service-type `(("gnupg/gpg.conf" ,(local-file (string-append %dotfiles-root "config/gnupg/gpg.conf"))) ("gnupg/gpg-agent.conf" - ,(local-file (string-append %dotfiles-root "config/gnupg/gpg-agent.conf"))) + ,gpg-agent-config) ("gnupg/scdaemon.conf" ,(local-file (string-append %dotfiles-root "config/gnupg/scdaemon.conf"))))))) |