nixos: use types.lines for extraConfig
commitb67561939154eab53d10943f2eb255b9822194d3
authorEmery Hemingway <emery@vfemail.net>
dateSun 23 Oct 2016, 19:33 (10 years ago)
parent795f968
nixos/modules/services/audio/mpd.nix+1−1
@@ -49,7 +49,7 @@ in {
4949 };
5050
5151 extraConfig = mkOption {
52− type = types.str;
52+ type = types.lines;
5353 default = "";
5454 description = ''
5555 Extra directives added to to the end of MPD's configuration file,
nixos/modules/services/backup/bacula.nix+1
@@ -340,6 +340,7 @@ in {
340340
341341 extraConfig = mkOption {
342342 default = "";
343+ type = types.lines;
343344 description = ''
344345 Extra configuration for Bacula Director Daemon.
345346 '';
nixos/modules/services/hardware/tlp.nix+1−1
@@ -40,7 +40,7 @@ in
4040 };
4141
4242 extraConfig = mkOption {
43− type = types.str;
43+ type = types.lines;
4444 default = "";
4545 description = "Additional configuration variables for TLP";
4646 };
nixos/modules/services/mail/dovecot.nix+1−1
@@ -111,7 +111,7 @@ in
111111 };
112112
113113 extraConfig = mkOption {
114− type = types.str;
114+ type = types.lines;
115115 default = "";
116116 example = "mail_debug = yes";
117117 description = "Additional entries to put verbatim into Dovecot's config file.";
nixos/modules/services/misc/bepasty.nix+1−1
@@ -53,7 +53,7 @@ in
5353 };
5454
5555 extraConfig = mkOption {
56− type = types.str;
56+ type = types.lines;
5757 description = ''
5858 Extra configuration for bepasty server to be appended on the
5959 configuration.
nixos/modules/services/misc/octoprint.nix+1−1
@@ -73,7 +73,7 @@ in
7373 };
7474
7575 extraConfig = mkOption {
76− type = types.attrs;
76+ type = types.lines;
7777 default = {};
7878 description = "Extra options which are added to OctoPrint's YAML configuration file.";
7979 };
nixos/modules/services/misc/redmine.nix+1−1
@@ -71,7 +71,7 @@ in {
7171 };
7272
7373 extraConfig = mkOption {
74− type = types.str;
74+ type = types.lines;
7575 default = "";
7676 description = "Extra configuration in configuration.yml";
7777 };
nixos/modules/services/monitoring/bosun.nix+1−1
@@ -107,7 +107,7 @@ in {
107107 };
108108
109109 extraConfig = mkOption {
110− type = types.string;
110+ type = types.lines;
111111 default = "";
112112 description = ''
113113 Extra configuration options for Bosun. You should describe your
nixos/modules/services/monitoring/graphite.nix+1−1
@@ -167,7 +167,7 @@ in {
167167 CACHE_TYPE: 'filesystem'
168168 CACHE_DIR: '/tmp/graphite-api-cache'
169169 '';
170− type = types.str;
170+ type = types.lines;
171171 };
172172 };
173173
nixos/modules/services/monitoring/munin.nix+1
@@ -100,6 +100,7 @@ in
100100
101101 extraConfig = mkOption {
102102 default = "";
103+ type = types.lines;
103104 description = ''
104105 <filename>munin-node.conf</filename> extra configuration. See
105106 <link xlink:href='http://munin-monitoring.org/wiki/munin-node.conf' />
nixos/modules/services/monitoring/zabbix-agent.nix+1
@@ -53,6 +53,7 @@ in
5353
5454 extraConfig = mkOption {
5555 default = "";
56+ type = types.lines;
5657 description = ''
5758 Configuration that is injected verbatim into the configuration file.
5859 '';
nixos/modules/services/network-filesystems/xtreemfs.nix+5
@@ -153,6 +153,7 @@ in
153153 '';
154154 };
155155 extraConfig = mkOption {
156+ type = types.lines;
156157 default = "";
157158 example = ''
158159 # specify whether SSL is required
@@ -173,6 +174,7 @@ in
173174 replication = {
174175 enable = mkEnableOption "XtreemFS DIR replication plugin";
175176 extraConfig = mkOption {
177+ type = types.lines;
176178 example = ''
177179 # participants of the replication including this replica
178180 babudb.repl.participant.0 = 192.168.0.10
@@ -269,6 +271,7 @@ in
269271 '';
270272 };
271273 extraConfig = mkOption {
274+ type = types.lines;
272275 example = ''
273276 osd_check_interval = 300
274277 no_atime = true
@@ -307,6 +310,7 @@ in
307310 replication = {
308311 enable = mkEnableOption "XtreemFS MRC replication plugin";
309312 extraConfig = mkOption {
313+ type = types.lines;
310314 example = ''
311315 # participants of the replication including this replica
312316 babudb.repl.participant.0 = 192.168.0.10
@@ -385,6 +389,7 @@ in
385389 '';
386390 };
387391 extraConfig = mkOption {
392+ type = types.lines;
388393 example = ''
389394 local_clock_renewal = 0
390395 remote_time_sync = 30000
nixos/modules/services/networking/bind.nix+1
@@ -113,6 +113,7 @@ in
113113 };
114114
115115 extraConfig = mkOption {
116+ type = types.lines;
116117 default = "";
117118 description = "
118119 Extra lines to be added verbatim to the generated named configuration file.
nixos/modules/services/networking/chrony.nix+1
@@ -51,6 +51,7 @@ in
5151 };
5252
5353 extraConfig = mkOption {
54+ type = types.lines;
5455 default = "";
5556 description = ''
5657 Extra configuration directives that should be added to
nixos/modules/services/networking/cntlm.nix+1
@@ -61,6 +61,7 @@ in
6161 };
6262
6363 extraConfig = mkOption {
64+ type = types.lines;
6465 default = "";
6566 description = "Verbatim contents of <filename>cntlm.conf</filename>.";
6667 };
nixos/modules/services/networking/ddclient.nix+1−1
@@ -89,7 +89,7 @@ in
8989
9090 extraConfig = mkOption {
9191 default = "";
92− type = str;
92+ type = lines;
9393 description = ''
9494 Extra configuration. Contents will be added verbatim to the configuration file.
9595 '';
nixos/modules/services/networking/dhcpd.nix+1
@@ -47,6 +47,7 @@ in
4747 };
4848
4949 extraConfig = mkOption {
50+ type = types.lines;
5051 default = "";
5152 example = ''
5253 option subnet-mask 255.255.255.0;
nixos/modules/services/networking/hostapd.nix+1−1
@@ -140,7 +140,7 @@ in
140140 ieee80211n=1
141141 ht_capab=[HT40-][SHORT-GI-40][DSSS_CCK-40]
142142 '';
143− type = types.string;
143+ type = types.lines;
144144 description = "Extra configuration options to put in hostapd.conf.";
145145 };
146146 };
nixos/modules/services/networking/kippo.nix+1−1
@@ -46,7 +46,7 @@ rec {
4646 };
4747 extraConfig = mkOption {
4848 default = "";
49− type = types.string;
49+ type = types.lines;
5050 description = ''Extra verbatim configuration added to the end of kippo.cfg.'';
5151 };
5252 };
nixos/modules/services/networking/murmur.nix+1−1
@@ -230,7 +230,7 @@ in
230230 };
231231
232232 extraConfig = mkOption {
233− type = types.str;
233+ type = types.lines;
234234 default = "";
235235 description = "Extra configuration to put into mumur.ini.";
236236 };
nixos/modules/services/networking/prayer.nix+1
@@ -56,6 +56,7 @@ in
5656 };
5757
5858 extraConfig = mkOption {
59+ type = types.lines;
5960 default = "" ;
6061 description = ''
6162 Extra configuration. Contents will be added verbatim to the configuration file.
nixos/modules/services/networking/prosody.nix+1
@@ -195,6 +195,7 @@ in
195195 };
196196
197197 extraConfig = mkOption {
198+ type = types.lines;
198199 default = '''';
199200 description = "Additional prosody configuration";
200201 };
nixos/modules/services/networking/smokeping.nix+1−1
@@ -244,7 +244,7 @@ in
244244 description = "Target configuration";
245245 };
246246 extraConfig = mkOption {
247− type = types.string;
247+ type = types.lines;
248248 default = "";
249249 description = "Any additional customization not already included.";
250250 };
nixos/modules/services/networking/unbound.nix+1−1
@@ -79,7 +79,7 @@ in
7979
8080 extraConfig = mkOption {
8181 default = "";
82− type = types.str;
82+ type = types.lines;
8383 description = ''
8484 Extra unbound config. See
8585 <citerefentry><refentrytitle>unbound.conf</refentrytitle><manvolnum>8
nixos/modules/services/networking/xinetd.nix+1−1
@@ -124,7 +124,7 @@ in
124124 };
125125
126126 extraConfig = mkOption {
127− type = types.string;
127+ type = types.lines;
128128 default = "";
129129 description = "Extra configuration-lines added to the section of the service.";
130130 };
nixos/modules/services/web-servers/apache-httpd/mediawiki.nix+1
@@ -288,6 +288,7 @@ in
288288 };
289289
290290 extraConfig = mkOption {
291+ type = types.lines;
291292 default = "";
292293 example =
293294 ''
nixos/modules/services/web-servers/apache-httpd/moodle.nix+1
@@ -164,6 +164,7 @@ in
164164
165165
166166 extraConfig = mkOption {
167+ type = types.lines;
167168 default = "";
168169 example =
169170 ''
nixos/modules/services/web-servers/apache-httpd/wordpress.nix+1
@@ -212,6 +212,7 @@ in
212212 example = "[ \"en_GB\" \"de_DE\" ];";
213213 };
214214 extraConfig = mkOption {
215+ type = types.lines;
215216 default = "";
216217 example =
217218 ''
nixos/modules/services/x11/display-managers/sddm.nix+1−1
@@ -86,7 +86,7 @@ in
8686 };
8787
8888 extraConfig = mkOption {
89− type = types.str;
89+ type = types.lines;
9090 default = "";
9191 example = ''
9292 [Autologin]