mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 10:49:48 +01:00
parent
576217d33a
commit
32b3f7f2d2
1 changed files with 7 additions and 4 deletions
|
@ -82,9 +82,12 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
compression = mkOption {
|
compression = mkOption {
|
||||||
type = types.bool;
|
type = types.nullOr types.bool;
|
||||||
default = false;
|
default = null;
|
||||||
description = "Specifies whether to use compression.";
|
description = ''
|
||||||
|
Specifies whether to use compression. Omitted from the host
|
||||||
|
block when <literal>null</literal>.
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
checkHostIP = mkOption {
|
checkHostIP = mkOption {
|
||||||
|
@ -123,7 +126,7 @@ let
|
||||||
++ optional (cf.hostname != null) " HostName ${cf.hostname}"
|
++ optional (cf.hostname != null) " HostName ${cf.hostname}"
|
||||||
++ optional (cf.serverAliveInterval != 0)
|
++ optional (cf.serverAliveInterval != 0)
|
||||||
" ServerAliveInterval ${toString cf.serverAliveInterval}"
|
" ServerAliveInterval ${toString cf.serverAliveInterval}"
|
||||||
++ optional cf.compression " Compression yes"
|
++ optional (cf.compression != null) " Compression ${yn cf.compression}"
|
||||||
++ optional (!cf.checkHostIP) " CheckHostIP no"
|
++ optional (!cf.checkHostIP) " CheckHostIP no"
|
||||||
++ optional (cf.proxyCommand != null) " ProxyCommand ${cf.proxyCommand}"
|
++ optional (cf.proxyCommand != null) " ProxyCommand ${cf.proxyCommand}"
|
||||||
++ mapAttrsToList (n: v: " ${n} ${v}") cf.extraOptions
|
++ mapAttrsToList (n: v: " ${n} ${v}") cf.extraOptions
|
||||||
|
|
Loading…
Reference in a new issue