diff options
author | Thomas Tuegel <ttuegel@gmail.com> | 2015-03-11 10:59:02 -0500 |
---|---|---|
committer | Thomas Tuegel <ttuegel@gmail.com> | 2015-03-11 11:49:29 -0500 |
commit | 4b109071524766c53910481cfb1894cbfcd366f4 (patch) | |
tree | ee9302a78ddb8f1fd3811cc902ca1a24f2a0d0da /nixos | |
parent | 5b5b7aa951dd371cd8ee1a88997ede0c3c17cb10 (diff) | |
download | nixlib-4b109071524766c53910481cfb1894cbfcd366f4.tar nixlib-4b109071524766c53910481cfb1894cbfcd366f4.tar.gz nixlib-4b109071524766c53910481cfb1894cbfcd366f4.tar.bz2 nixlib-4b109071524766c53910481cfb1894cbfcd366f4.tar.lz nixlib-4b109071524766c53910481cfb1894cbfcd366f4.tar.xz nixlib-4b109071524766c53910481cfb1894cbfcd366f4.tar.zst nixlib-4b109071524766c53910481cfb1894cbfcd366f4.zip |
ssh: make askPassword an option
By making askPassword an option, desktop environment modules can override the default x11_ssh_askpassword with their own equivalent for better integration. For example, KDE 5 uses plasma5.ksshaskpass instead.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/programs/ssh.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/modules/programs/ssh.nix b/nixos/modules/programs/ssh.nix index bd9b897158dc..6ca73eea5f6f 100644 --- a/nixos/modules/programs/ssh.nix +++ b/nixos/modules/programs/ssh.nix @@ -9,7 +9,7 @@ let cfg = config.programs.ssh; cfgd = config.services.openssh; - askPassword = "${pkgs.x11_ssh_askpass}/libexec/x11-ssh-askpass"; + askPassword = cfg.askPassword; askPasswordWrapper = pkgs.writeScript "ssh-askpass-wrapper" '' @@ -26,6 +26,12 @@ in programs.ssh = { + askPassword = mkOption { + type = types.string; + default = "${pkgs.x11_ssh_askpass}/libexec/x11-ssh-askpass"; + description = ''Program used by SSH to ask for passwords.''; + }; + forwardX11 = mkOption { type = types.bool; default = false; |