Merge pull request #127402 from sigprof/nixos-ssh-askpass-args

nixos/ssh: fix passing arguments to ssh-askpass
This commit is contained in:
Artturi 2021-08-07 02:30:28 +03:00 committed by GitHub
commit 7d45138e68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ let
''
#! ${pkgs.runtimeShell} -e
export DISPLAY="$(systemctl --user show-environment | ${pkgs.gnused}/bin/sed 's/^DISPLAY=\(.*\)/\1/; t; d')"
exec ${askPassword}
exec ${askPassword} "$@"
'';
knownHosts = map (h: getAttr h cfg.knownHosts) (attrNames cfg.knownHosts);