ssh: add proxy command option

This commit is contained in:
Robert Helgesson 2017-05-13 12:08:09 +02:00
parent bce262e46e
commit 961722c3a8
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -89,6 +89,12 @@ let
<filename>known_hosts</filename> file. <filename>known_hosts</filename> file.
''; '';
}; };
proxyCommand = mkOption {
type = types.nullOr types.str;
default = null;
description = "The command to use to connect to the server.";
};
}; };
}; };
@ -104,6 +110,7 @@ let
++ optional (cf.serverAliveInterval != 0) ++ optional (cf.serverAliveInterval != 0)
" ServerAliveInterval ${toString cf.serverAliveInterval}" " ServerAliveInterval ${toString cf.serverAliveInterval}"
++ optional (!cf.checkHostIP) " CheckHostIP no" ++ optional (!cf.checkHostIP) " CheckHostIP no"
++ optional (cf.proxyCommand != null) " ProxyCommand ${cf.proxyCommand}"
); );
in in