···116116 attribute name.
117117 '';
118118119119- type = types.attrsOf types.optionSet;
119119+ type = with types; attrsOf (submodule {
120120121121- options = {
121121+ options = {
122122123123- config = mkOption {
124124- type = types.lines;
125125- description = ''
126126- Configuration of this OpenVPN instance. See
127127- <citerefentry><refentrytitle>openvpn</refentrytitle><manvolnum>8</manvolnum></citerefentry>
128128- for details.
129129- '';
130130- };
123123+ config = mkOption {
124124+ type = types.lines;
125125+ description = ''
126126+ Configuration of this OpenVPN instance. See
127127+ <citerefentry><refentrytitle>openvpn</refentrytitle><manvolnum>8</manvolnum></citerefentry>
128128+ for details.
129129+ '';
130130+ };
131131132132- up = mkOption {
133133- default = "";
134134- type = types.lines;
135135- description = ''
136136- Shell commands executed when the instance is starting.
137137- '';
138138- };
132132+ up = mkOption {
133133+ default = "";
134134+ type = types.lines;
135135+ description = ''
136136+ Shell commands executed when the instance is starting.
137137+ '';
138138+ };
139139140140- down = mkOption {
141141- default = "";
142142- type = types.lines;
143143- description = ''
144144- Shell commands executed when the instance is shutting down.
145145- '';
146146- };
140140+ down = mkOption {
141141+ default = "";
142142+ type = types.lines;
143143+ description = ''
144144+ Shell commands executed when the instance is shutting down.
145145+ '';
146146+ };
147147148148- autoStart = mkOption {
149149- default = true;
150150- type = types.bool;
151151- description = "Whether this OpenVPN instance should be started automatically.";
152152- };
148148+ autoStart = mkOption {
149149+ default = true;
150150+ type = types.bool;
151151+ description = "Whether this OpenVPN instance should be started automatically.";
152152+ };
153153+154154+ updateResolvConf = mkOption {
155155+ default = false;
156156+ type = types.bool;
157157+ description = ''
158158+ Use the script from the update-resolv-conf package to automatically
159159+ update resolv.conf with the DNS information provided by openvpn. The
160160+ script will be run after the "up" commands and before the "down" commands.
161161+ '';
162162+ };
153163154154- updateResolvConf = mkOption {
155155- default = false;
156156- type = types.bool;
157157- description = ''
158158- Use the script from the update-resolv-conf package to automatically
159159- update resolv.conf with the DNS information provided by openvpn. The
160160- script will be run after the "up" commands and before the "down" commands.
161161- '';
162164 };
163165164164- };
166166+ });
165167166168 };
167169