lol

xinet module: optionSet -> submodule

+55 -53
+55 -53
nixos/modules/services/networking/xinetd.nix
··· 65 65 A list of services provided by xinetd. 66 66 ''; 67 67 68 - type = types.listOf types.optionSet; 68 + type = with types; listOf (submodule ({ 69 69 70 - options = { 70 + options = { 71 71 72 - name = mkOption { 73 - type = types.string; 74 - example = "login"; 75 - description = "Name of the service."; 76 - }; 72 + name = mkOption { 73 + type = types.string; 74 + example = "login"; 75 + description = "Name of the service."; 76 + }; 77 77 78 - 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 - }; 78 + 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 + }; 84 84 85 - port = mkOption { 86 - type = types.int; 87 - default = 0; 88 - example = 123; 89 - description = "Port number of the service."; 90 - }; 85 + port = mkOption { 86 + type = types.int; 87 + default = 0; 88 + example = 123; 89 + description = "Port number of the service."; 90 + }; 91 91 92 - user = mkOption { 93 - type = types.string; 94 - default = "nobody"; 95 - description = "User account for the service"; 96 - }; 92 + user = mkOption { 93 + type = types.string; 94 + default = "nobody"; 95 + description = "User account for the service"; 96 + }; 97 97 98 - server = mkOption { 99 - type = types.string; 100 - example = "/foo/bin/ftpd"; 101 - description = "Path of the program that implements the service."; 102 - }; 98 + server = mkOption { 99 + type = types.string; 100 + example = "/foo/bin/ftpd"; 101 + description = "Path of the program that implements the service."; 102 + }; 103 103 104 - serverArgs = mkOption { 105 - type = types.string; 106 - default = ""; 107 - description = "Command-line arguments for the server program."; 108 - }; 104 + serverArgs = mkOption { 105 + type = types.string; 106 + default = ""; 107 + description = "Command-line arguments for the server program."; 108 + }; 109 109 110 - flags = mkOption { 111 - type = types.string; 112 - default = ""; 113 - description = ""; 114 - }; 110 + flags = mkOption { 111 + type = types.string; 112 + default = ""; 113 + description = ""; 114 + }; 115 115 116 - 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 - }; 116 + 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 + }; 125 131 126 - extraConfig = mkOption { 127 - type = types.string; 128 - default = ""; 129 - description = "Extra configuration-lines added to the section of the service."; 130 132 }; 131 133 132 - }; 134 + })); 133 135 134 136 }; 135 137