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:
parent
299c891e49
commit
abec9da80c
1 changed files with 1 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue