Merge pull request #12590 from exi/askpass-in-env
nixos-ssh: set SSH_ASKPASS globally and not just on interactive shells
This commit is contained in:
commit
ff51021920
@ -221,10 +221,7 @@ in
|
|||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
environment.interactiveShellInit = optionalString config.services.xserver.enable
|
environment.variables.SSH_ASKPASS = optionalString config.services.xserver.enable askPassword;
|
||||||
''
|
|
||||||
export SSH_ASKPASS=${askPassword}
|
|
||||||
'';
|
|
||||||
|
|
||||||
programs.ssh.askPassword = mkDefault "${pkgs.x11_ssh_askpass}/libexec/x11-ssh-askpass";
|
programs.ssh.askPassword = mkDefault "${pkgs.x11_ssh_askpass}/libexec/x11-ssh-askpass";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user