···116 attribute name.
117 '';
118119- type = types.attrsOf types.optionSet;
120121- options = {
122123- 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- };
131132- up = mkOption {
133- default = "";
134- type = types.lines;
135- description = ''
136- Shell commands executed when the instance is starting.
137- '';
138- };
139140- down = mkOption {
141- default = "";
142- type = types.lines;
143- description = ''
144- Shell commands executed when the instance is shutting down.
145- '';
146- };
147148- autoStart = mkOption {
149- default = true;
150- type = types.bool;
151- description = "Whether this OpenVPN instance should be started automatically.";
152- };
0000000000153154- 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 };
163164- };
165166 };
167
···116 attribute name.
117 '';
118119+ type = with types; attrsOf (submodule {
120121+ options = {
122123+ 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+ };
131132+ up = mkOption {
133+ default = "";
134+ type = types.lines;
135+ description = ''
136+ Shell commands executed when the instance is starting.
137+ '';
138+ };
139140+ down = mkOption {
141+ default = "";
142+ type = types.lines;
143+ description = ''
144+ Shell commands executed when the instance is shutting down.
145+ '';
146+ };
147148+ 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+ };
16300000000164 };
165166+ });
167168 };
169