1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-26 21:19:45 +01:00

gpg-agent: Fix nushell integration

This commit is contained in:
Joaquín Triñanes 2024-03-06 11:54:01 +01:00 committed by GitHub
parent 3c7bacf1d4
commit 1d717f581b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,9 +27,7 @@ let
'' + optionalString cfg.enableSshSupport '' '' + optionalString cfg.enableSshSupport ''
${gpgPkg}/bin/gpg-connect-agent updatestartuptty /bye | ignore ${gpgPkg}/bin/gpg-connect-agent updatestartuptty /bye | ignore
if not "SSH_AUTH_SOCK" in $env { $env.SSH_AUTH_SOCK = ($env.SSH_AUTH_SOCK? | default (${gpgPkg}/bin/gpgconf --list-dirs agent-ssh-socket))
$env.SSH_AUTH_SOCK = (${gpgPkg}/bin/gpgconf --list-dirs agent-ssh-socket)
}
''; '';
# mimic `gpgconf` output for use in `systemd` unit definitions. # mimic `gpgconf` output for use in `systemd` unit definitions.