lol

openvpn module: optionSet -> submodule

+40 -38
+40 -38
nixos/modules/services/networking/openvpn.nix
··· 116 116 attribute name. 117 117 ''; 118 118 119 - type = types.attrsOf types.optionSet; 119 + type = with types; attrsOf (submodule { 120 120 121 - options = { 121 + options = { 122 122 123 - config = mkOption { 124 - type = types.lines; 125 - description = '' 126 - Configuration of this OpenVPN instance. See 127 - <citerefentry><refentrytitle>openvpn</refentrytitle><manvolnum>8</manvolnum></citerefentry> 128 - for details. 129 - ''; 130 - }; 123 + config = mkOption { 124 + type = types.lines; 125 + description = '' 126 + Configuration of this OpenVPN instance. See 127 + <citerefentry><refentrytitle>openvpn</refentrytitle><manvolnum>8</manvolnum></citerefentry> 128 + for details. 129 + ''; 130 + }; 131 131 132 - up = mkOption { 133 - default = ""; 134 - type = types.lines; 135 - description = '' 136 - Shell commands executed when the instance is starting. 137 - ''; 138 - }; 132 + up = mkOption { 133 + default = ""; 134 + type = types.lines; 135 + description = '' 136 + Shell commands executed when the instance is starting. 137 + ''; 138 + }; 139 139 140 - down = mkOption { 141 - default = ""; 142 - type = types.lines; 143 - description = '' 144 - Shell commands executed when the instance is shutting down. 145 - ''; 146 - }; 140 + down = mkOption { 141 + default = ""; 142 + type = types.lines; 143 + description = '' 144 + Shell commands executed when the instance is shutting down. 145 + ''; 146 + }; 147 147 148 - autoStart = mkOption { 149 - default = true; 150 - type = types.bool; 151 - description = "Whether this OpenVPN instance should be started automatically."; 152 - }; 148 + autoStart = mkOption { 149 + default = true; 150 + type = types.bool; 151 + description = "Whether this OpenVPN instance should be started automatically."; 152 + }; 153 + 154 + updateResolvConf = mkOption { 155 + default = false; 156 + type = types.bool; 157 + description = '' 158 + Use the script from the update-resolv-conf package to automatically 159 + update resolv.conf with the DNS information provided by openvpn. The 160 + script will be run after the "up" commands and before the "down" commands. 161 + ''; 162 + }; 153 163 154 - updateResolvConf = mkOption { 155 - default = false; 156 - type = types.bool; 157 - description = '' 158 - Use the script from the update-resolv-conf package to automatically 159 - update resolv.conf with the DNS information provided by openvpn. The 160 - script will be run after the "up" commands and before the "down" commands. 161 - ''; 162 164 }; 163 165 164 - }; 166 + }); 165 167 166 168 }; 167 169