Support de SSH par gnupg

This commit is contained in:
Adrien 'neox' Bourmault 2023-10-03 19:53:09 +02:00
parent 5fb8107771
commit a79f6dd335
No known key found for this signature in database
GPG Key ID: 2974E1D5F25DFCC8
2 changed files with 29 additions and 20 deletions

View File

@ -36,3 +36,7 @@ export GUIX_PACKAGE_PATH=~/.config/guix/packages/defs
source ~/.bash_secrets
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi

View File

@ -7,8 +7,10 @@
(use-modules (gnu home)
(gnu services)
(gnu packages)
(gnu packages gnupg)
(guix gexp)
(gnu home services shells))
(gnu home services shells)
(gnu home services gnupg))
(home-environment
(services
@ -24,10 +26,13 @@
("ll" . "ls -l")
("l" . "ls -CF")
("ls" . "ls -p --color=auto")
("vdir" . "vdir --color=auto")
))
(bashrc (list (local-file
"/home/neox/.config/guix//.bashrc" "bashrc")))
("vdir" . "vdir --color=auto")))
(bashrc (list (local-file "/home/neox/.config/guix//.bashrc" "bashrc")))
(bash-profile (list (local-file
"/home/neox/.config/guix//.bash_profile"
"bash_profile"))))))))
"bash_profile")))))
(service home-gpg-agent-service-type
(home-gpg-agent-configuration
(pinentry-program
(file-append pinentry-gnome3 "/bin/pinentry-gnome3"))
(ssh-support? #t))))))