mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 18:59:47 +01:00
ssh: add proxy command option
This commit is contained in:
parent
bce262e46e
commit
961722c3a8
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue