···65 A list of services provided by xinetd.
66 '';
6768- type = types.listOf types.optionSet;
6970- options = {
7172- name = mkOption {
73- type = types.string;
74- example = "login";
75- description = "Name of the service.";
76- };
7778- protocol = mkOption {
79- type = types.string;
80- default = "tcp";
81- description =
82- "Protocol of the service. Usually <literal>tcp</literal> or <literal>udp</literal>.";
83- };
8485- port = mkOption {
86- type = types.int;
87- default = 0;
88- example = 123;
89- description = "Port number of the service.";
90- };
9192- user = mkOption {
93- type = types.string;
94- default = "nobody";
95- description = "User account for the service";
96- };
9798- server = mkOption {
99- type = types.string;
100- example = "/foo/bin/ftpd";
101- description = "Path of the program that implements the service.";
102- };
103104- serverArgs = mkOption {
105- type = types.string;
106- default = "";
107- description = "Command-line arguments for the server program.";
108- };
109110- flags = mkOption {
111- type = types.string;
112- default = "";
113- description = "";
114- };
115116- unlisted = mkOption {
117- type = types.bool;
118- default = false;
119- description = ''
120- Whether this server is listed in
121- <filename>/etc/services</filename>. If so, the port
122- number can be omitted.
123- '';
124- };
000000125126- extraConfig = mkOption {
127- type = types.string;
128- default = "";
129- description = "Extra configuration-lines added to the section of the service.";
130 };
131132- };
133134 };
135
···65 A list of services provided by xinetd.
66 '';
6768+ type = with types; listOf (submodule ({
6970+ options = {
7172+ name = mkOption {
73+ type = types.string;
74+ example = "login";
75+ description = "Name of the service.";
76+ };
7778+ protocol = mkOption {
79+ type = types.string;
80+ default = "tcp";
81+ description =
82+ "Protocol of the service. Usually <literal>tcp</literal> or <literal>udp</literal>.";
83+ };
8485+ port = mkOption {
86+ type = types.int;
87+ default = 0;
88+ example = 123;
89+ description = "Port number of the service.";
90+ };
9192+ user = mkOption {
93+ type = types.string;
94+ default = "nobody";
95+ description = "User account for the service";
96+ };
9798+ server = mkOption {
99+ type = types.string;
100+ example = "/foo/bin/ftpd";
101+ description = "Path of the program that implements the service.";
102+ };
103104+ serverArgs = mkOption {
105+ type = types.string;
106+ default = "";
107+ description = "Command-line arguments for the server program.";
108+ };
109110+ flags = mkOption {
111+ type = types.string;
112+ default = "";
113+ description = "";
114+ };
115116+ unlisted = mkOption {
117+ type = types.bool;
118+ default = false;
119+ description = ''
120+ Whether this server is listed in
121+ <filename>/etc/services</filename>. If so, the port
122+ number can be omitted.
123+ '';
124+ };
125+126+ extraConfig = mkOption {
127+ type = types.string;
128+ default = "";
129+ description = "Extra configuration-lines added to the section of the service.";
130+ };
1310000132 };
133134+ }));
135136 };
137