diff --git a/nixos/modules/programs/ssh.nix b/nixos/modules/programs/ssh.nix index bd9b897158d..6ca73eea5f6 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;