mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 21:25:30 +03:00
sshd module: optionSet -> submodule
This commit is contained in:
parent
d89a718baf
commit
48d6fa933c
1 changed files with 18 additions and 17 deletions
|
@ -129,17 +129,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
listenAddresses = mkOption {
|
listenAddresses = mkOption {
|
||||||
type = types.listOf types.optionSet;
|
type = with types; listOf (submodule {
|
||||||
default = [];
|
|
||||||
example = [ { addr = "192.168.3.1"; port = 22; } { addr = "0.0.0.0"; port = 64022; } ];
|
|
||||||
description = ''
|
|
||||||
List of addresses and ports to listen on (ListenAddress directive
|
|
||||||
in config). If port is not specified for address sshd will listen
|
|
||||||
on all ports specified by <literal>ports</literal> option.
|
|
||||||
NOTE: this will override default listening on all local addresses and port 22.
|
|
||||||
NOTE: setting this option won't automatically enable given ports
|
|
||||||
in firewall configuration.
|
|
||||||
'';
|
|
||||||
options = {
|
options = {
|
||||||
addr = mkOption {
|
addr = mkOption {
|
||||||
type = types.nullOr types.str;
|
type = types.nullOr types.str;
|
||||||
|
@ -156,6 +146,17 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
});
|
||||||
|
default = [];
|
||||||
|
example = [ { addr = "192.168.3.1"; port = 22; } { addr = "0.0.0.0"; port = 64022; } ];
|
||||||
|
description = ''
|
||||||
|
List of addresses and ports to listen on (ListenAddress directive
|
||||||
|
in config). If port is not specified for address sshd will listen
|
||||||
|
on all ports specified by <literal>ports</literal> option.
|
||||||
|
NOTE: this will override default listening on all local addresses and port 22.
|
||||||
|
NOTE: setting this option won't automatically enable given ports
|
||||||
|
in firewall configuration.
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
passwordAuthentication = mkOption {
|
passwordAuthentication = mkOption {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue