Files
nixos-config/user/files/shell/rc.d/10-gpg-agent.sh
Morten Olsen 6a41699dc3 init
2023-09-12 08:28:05 +02:00

6 lines
165 B
Bash

export GPG_TTY="$(tty)"
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
gpg-connect-agent updatestartuptty /bye > /dev/null