From 3656bf1ad7b86b1ea3027c2b347244a12180be69 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 15 Jan 2019 13:09:16 -0800 Subject: [PATCH] ssh: add `proxyJump` option (cherry picked from commit 3cf8b9ea86640b8c4c4f1427419eef5b75ec691e) --- modules/programs/ssh.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/programs/ssh.nix b/modules/programs/ssh.nix index 874ae9af..d888a04e 100644 --- a/modules/programs/ssh.nix +++ b/modules/programs/ssh.nix @@ -125,6 +125,12 @@ let description = "The command to use to connect to the server."; }; + proxyJump = mkOption { + type = types.nullOr types.str; + default = null; + description = "The proxy host to use to connect to the server."; + }; + certificateFile = mkOption { type = types.nullOr types.path; default = null; @@ -169,6 +175,7 @@ let ++ optional (cf.compression != null) " Compression ${yn cf.compression}" ++ optional (!cf.checkHostIP) " CheckHostIP no" ++ optional (cf.proxyCommand != null) " ProxyCommand ${cf.proxyCommand}" + ++ optional (cf.proxyJump != null) " ProxyJump ${cf.proxyJump}" ++ mapAttrsToList (n: v: " ${n} ${v}") cf.extraOptions );