mirror of
https://github.com/nix-community/home-manager
synced 2025-01-26 02:45:01 +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 ''
|
'' + 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.
|
||||||
|
|
Loading…
Add table
Reference in a new issue