···6565 A list of services provided by xinetd.
6666 '';
67676868- type = types.listOf types.optionSet;
6868+ type = with types; listOf (submodule ({
69697070- options = {
7070+ options = {
71717272- name = mkOption {
7373- type = types.string;
7474- example = "login";
7575- description = "Name of the service.";
7676- };
7272+ name = mkOption {
7373+ type = types.string;
7474+ example = "login";
7575+ description = "Name of the service.";
7676+ };
77777878- protocol = mkOption {
7979- type = types.string;
8080- default = "tcp";
8181- description =
8282- "Protocol of the service. Usually <literal>tcp</literal> or <literal>udp</literal>.";
8383- };
7878+ protocol = mkOption {
7979+ type = types.string;
8080+ default = "tcp";
8181+ description =
8282+ "Protocol of the service. Usually <literal>tcp</literal> or <literal>udp</literal>.";
8383+ };
84848585- port = mkOption {
8686- type = types.int;
8787- default = 0;
8888- example = 123;
8989- description = "Port number of the service.";
9090- };
8585+ port = mkOption {
8686+ type = types.int;
8787+ default = 0;
8888+ example = 123;
8989+ description = "Port number of the service.";
9090+ };
91919292- user = mkOption {
9393- type = types.string;
9494- default = "nobody";
9595- description = "User account for the service";
9696- };
9292+ user = mkOption {
9393+ type = types.string;
9494+ default = "nobody";
9595+ description = "User account for the service";
9696+ };
97979898- server = mkOption {
9999- type = types.string;
100100- example = "/foo/bin/ftpd";
101101- description = "Path of the program that implements the service.";
102102- };
9898+ server = mkOption {
9999+ type = types.string;
100100+ example = "/foo/bin/ftpd";
101101+ description = "Path of the program that implements the service.";
102102+ };
103103104104- serverArgs = mkOption {
105105- type = types.string;
106106- default = "";
107107- description = "Command-line arguments for the server program.";
108108- };
104104+ serverArgs = mkOption {
105105+ type = types.string;
106106+ default = "";
107107+ description = "Command-line arguments for the server program.";
108108+ };
109109110110- flags = mkOption {
111111- type = types.string;
112112- default = "";
113113- description = "";
114114- };
110110+ flags = mkOption {
111111+ type = types.string;
112112+ default = "";
113113+ description = "";
114114+ };
115115116116- unlisted = mkOption {
117117- type = types.bool;
118118- default = false;
119119- description = ''
120120- Whether this server is listed in
121121- <filename>/etc/services</filename>. If so, the port
122122- number can be omitted.
123123- '';
124124- };
116116+ unlisted = mkOption {
117117+ type = types.bool;
118118+ default = false;
119119+ description = ''
120120+ Whether this server is listed in
121121+ <filename>/etc/services</filename>. If so, the port
122122+ number can be omitted.
123123+ '';
124124+ };
125125+126126+ extraConfig = mkOption {
127127+ type = types.string;
128128+ default = "";
129129+ description = "Extra configuration-lines added to the section of the service.";
130130+ };
125131126126- extraConfig = mkOption {
127127- type = types.string;
128128- default = "";
129129- description = "Extra configuration-lines added to the section of the service.";
130132 };
131133132132- };
134134+ }));
133135134136 };
135137