1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-13 06:39:44 +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 Mikilio
parent 299c891e49
commit abec9da80c
No known key found for this signature in database
GPG key ID: 5B2F1A890CF33F3F

View file

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