sshd module: optionSet -> submodule
This commit is contained in:
parent
d89a718baf
commit
48d6fa933c
@ -129,7 +129,24 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
listenAddresses = mkOption {
|
listenAddresses = mkOption {
|
||||||
type = types.listOf types.optionSet;
|
type = with types; listOf (submodule {
|
||||||
|
options = {
|
||||||
|
addr = mkOption {
|
||||||
|
type = types.nullOr types.str;
|
||||||
|
default = null;
|
||||||
|
description = ''
|
||||||
|
Host, IPv4 or IPv6 address to listen to.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
port = mkOption {
|
||||||
|
type = types.nullOr types.int;
|
||||||
|
default = null;
|
||||||
|
description = ''
|
||||||
|
Port to listen to.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
});
|
||||||
default = [];
|
default = [];
|
||||||
example = [ { addr = "192.168.3.1"; port = 22; } { addr = "0.0.0.0"; port = 64022; } ];
|
example = [ { addr = "192.168.3.1"; port = 22; } { addr = "0.0.0.0"; port = 64022; } ];
|
||||||
description = ''
|
description = ''
|
||||||
@ -140,22 +157,6 @@ in
|
|||||||
NOTE: setting this option won't automatically enable given ports
|
NOTE: setting this option won't automatically enable given ports
|
||||||
in firewall configuration.
|
in firewall configuration.
|
||||||
'';
|
'';
|
||||||
options = {
|
|
||||||
addr = mkOption {
|
|
||||||
type = types.nullOr types.str;
|
|
||||||
default = null;
|
|
||||||
description = ''
|
|
||||||
Host, IPv4 or IPv6 address to listen to.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
port = mkOption {
|
|
||||||
type = types.nullOr types.int;
|
|
||||||
default = null;
|
|
||||||
description = ''
|
|
||||||
Port to listen to.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
passwordAuthentication = mkOption {
|
passwordAuthentication = mkOption {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user