···28 type = types.int;
29 default = 0;
30 description = ''
31- Port for the server. 0 means use the default port: 80 for http
32- and 443 for https (i.e. when enableSSL is set).
000000000000000000033 '';
0034 };
3536 enableSSL = mkOption {
···28 type = types.int;
29 default = 0;
30 description = ''
31+ Port for the server. Option will be removed, use <option>listen</option> instead.
32+ '';
33+ };
34+35+ listen = mkOption {
36+ type = types.listOf (types.submodule (
37+ {
38+ options = {
39+ port = mkOption {
40+ type = types.int;
41+ description = "port to listen on";
42+ };
43+ ip = mkOption {
44+ type = types.string;
45+ default = "*";
46+ description = "Ip to listen on. 0.0.0.0 for ipv4 only, * for all.";
47+ };
48+ };
49+ } ));
50+ description = ''
51+ List of { /* ip: "*"; */ port = 80;} to listen on
52 '';
53+54+ default = [];
55 };
5657 enableSSL = mkOption {