sshd module: optionSet -> submodule

Changed files
+18 -17
nixos
modules
services
networking
ssh
+18 -17
nixos/modules/services/networking/ssh/sshd.nix
···
};
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 = [];
example = [ { addr = "192.168.3.1"; port = 22; } { addr = "0.0.0.0"; port = 64022; } ];
description = ''
···
NOTE: setting this option won't automatically enable given ports
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 {