nixos: use types.lines for extraConfig

This commit is contained in:
Emery Hemingway 2016-10-23 19:33:41 +02:00
parent 795f968b17
commit b675619391
29 changed files with 33 additions and 16 deletions

View File

@ -49,7 +49,7 @@ in {
}; };
extraConfig = mkOption { extraConfig = mkOption {
type = types.str; type = types.lines;
default = ""; default = "";
description = '' description = ''
Extra directives added to to the end of MPD's configuration file, Extra directives added to to the end of MPD's configuration file,

View File

@ -340,6 +340,7 @@ in {
extraConfig = mkOption { extraConfig = mkOption {
default = ""; default = "";
type = types.lines;
description = '' description = ''
Extra configuration for Bacula Director Daemon. Extra configuration for Bacula Director Daemon.
''; '';

View File

@ -40,7 +40,7 @@ in
}; };
extraConfig = mkOption { extraConfig = mkOption {
type = types.str; type = types.lines;
default = ""; default = "";
description = "Additional configuration variables for TLP"; description = "Additional configuration variables for TLP";
}; };

View File

@ -111,7 +111,7 @@ in
}; };
extraConfig = mkOption { extraConfig = mkOption {
type = types.str; type = types.lines;
default = ""; default = "";
example = "mail_debug = yes"; example = "mail_debug = yes";
description = "Additional entries to put verbatim into Dovecot's config file."; description = "Additional entries to put verbatim into Dovecot's config file.";

View File

@ -53,7 +53,7 @@ in
}; };
extraConfig = mkOption { extraConfig = mkOption {
type = types.str; type = types.lines;
description = '' description = ''
Extra configuration for bepasty server to be appended on the Extra configuration for bepasty server to be appended on the
configuration. configuration.

View File

@ -73,7 +73,7 @@ in
}; };
extraConfig = mkOption { extraConfig = mkOption {
type = types.attrs; type = types.lines;
default = {}; default = {};
description = "Extra options which are added to OctoPrint's YAML configuration file."; description = "Extra options which are added to OctoPrint's YAML configuration file.";
}; };

View File

@ -71,7 +71,7 @@ in {
}; };
extraConfig = mkOption { extraConfig = mkOption {
type = types.str; type = types.lines;
default = ""; default = "";
description = "Extra configuration in configuration.yml"; description = "Extra configuration in configuration.yml";
}; };

View File

@ -107,7 +107,7 @@ in {
}; };
extraConfig = mkOption { extraConfig = mkOption {
type = types.string; type = types.lines;
default = ""; default = "";
description = '' description = ''
Extra configuration options for Bosun. You should describe your Extra configuration options for Bosun. You should describe your

View File

@ -167,7 +167,7 @@ in {
CACHE_TYPE: 'filesystem' CACHE_TYPE: 'filesystem'
CACHE_DIR: '/tmp/graphite-api-cache' CACHE_DIR: '/tmp/graphite-api-cache'
''; '';
type = types.str; type = types.lines;
}; };
}; };

View File

@ -100,6 +100,7 @@ in
extraConfig = mkOption { extraConfig = mkOption {
default = ""; default = "";
type = types.lines;
description = '' description = ''
<filename>munin-node.conf</filename> extra configuration. See <filename>munin-node.conf</filename> extra configuration. See
<link xlink:href='http://munin-monitoring.org/wiki/munin-node.conf' /> <link xlink:href='http://munin-monitoring.org/wiki/munin-node.conf' />

View File

@ -53,6 +53,7 @@ in
extraConfig = mkOption { extraConfig = mkOption {
default = ""; default = "";
type = types.lines;
description = '' description = ''
Configuration that is injected verbatim into the configuration file. Configuration that is injected verbatim into the configuration file.
''; '';

View File

@ -153,6 +153,7 @@ in
''; '';
}; };
extraConfig = mkOption { extraConfig = mkOption {
type = types.lines;
default = ""; default = "";
example = '' example = ''
# specify whether SSL is required # specify whether SSL is required
@ -173,6 +174,7 @@ in
replication = { replication = {
enable = mkEnableOption "XtreemFS DIR replication plugin"; enable = mkEnableOption "XtreemFS DIR replication plugin";
extraConfig = mkOption { extraConfig = mkOption {
type = types.lines;
example = '' example = ''
# participants of the replication including this replica # participants of the replication including this replica
babudb.repl.participant.0 = 192.168.0.10 babudb.repl.participant.0 = 192.168.0.10
@ -269,6 +271,7 @@ in
''; '';
}; };
extraConfig = mkOption { extraConfig = mkOption {
type = types.lines;
example = '' example = ''
osd_check_interval = 300 osd_check_interval = 300
no_atime = true no_atime = true
@ -307,6 +310,7 @@ in
replication = { replication = {
enable = mkEnableOption "XtreemFS MRC replication plugin"; enable = mkEnableOption "XtreemFS MRC replication plugin";
extraConfig = mkOption { extraConfig = mkOption {
type = types.lines;
example = '' example = ''
# participants of the replication including this replica # participants of the replication including this replica
babudb.repl.participant.0 = 192.168.0.10 babudb.repl.participant.0 = 192.168.0.10
@ -385,6 +389,7 @@ in
''; '';
}; };
extraConfig = mkOption { extraConfig = mkOption {
type = types.lines;
example = '' example = ''
local_clock_renewal = 0 local_clock_renewal = 0
remote_time_sync = 30000 remote_time_sync = 30000

View File

@ -113,6 +113,7 @@ in
}; };
extraConfig = mkOption { extraConfig = mkOption {
type = types.lines;
default = ""; default = "";
description = " description = "
Extra lines to be added verbatim to the generated named configuration file. Extra lines to be added verbatim to the generated named configuration file.

View File

@ -51,6 +51,7 @@ in
}; };
extraConfig = mkOption { extraConfig = mkOption {
type = types.lines;
default = ""; default = "";
description = '' description = ''
Extra configuration directives that should be added to Extra configuration directives that should be added to

View File

@ -61,6 +61,7 @@ in
}; };
extraConfig = mkOption { extraConfig = mkOption {
type = types.lines;
default = ""; default = "";
description = "Verbatim contents of <filename>cntlm.conf</filename>."; description = "Verbatim contents of <filename>cntlm.conf</filename>.";
}; };

View File

@ -89,7 +89,7 @@ in
extraConfig = mkOption { extraConfig = mkOption {
default = ""; default = "";
type = str; type = lines;
description = '' description = ''
Extra configuration. Contents will be added verbatim to the configuration file. Extra configuration. Contents will be added verbatim to the configuration file.
''; '';

View File

@ -47,6 +47,7 @@ in
}; };
extraConfig = mkOption { extraConfig = mkOption {
type = types.lines;
default = ""; default = "";
example = '' example = ''
option subnet-mask 255.255.255.0; option subnet-mask 255.255.255.0;

View File

@ -140,7 +140,7 @@ in
ieee80211n=1 ieee80211n=1
ht_capab=[HT40-][SHORT-GI-40][DSSS_CCK-40] ht_capab=[HT40-][SHORT-GI-40][DSSS_CCK-40]
''; '';
type = types.string; type = types.lines;
description = "Extra configuration options to put in hostapd.conf."; description = "Extra configuration options to put in hostapd.conf.";
}; };
}; };

View File

@ -46,7 +46,7 @@ rec {
}; };
extraConfig = mkOption { extraConfig = mkOption {
default = ""; default = "";
type = types.string; type = types.lines;
description = ''Extra verbatim configuration added to the end of kippo.cfg.''; description = ''Extra verbatim configuration added to the end of kippo.cfg.'';
}; };
}; };

View File

@ -230,7 +230,7 @@ in
}; };
extraConfig = mkOption { extraConfig = mkOption {
type = types.str; type = types.lines;
default = ""; default = "";
description = "Extra configuration to put into mumur.ini."; description = "Extra configuration to put into mumur.ini.";
}; };

View File

@ -56,6 +56,7 @@ in
}; };
extraConfig = mkOption { extraConfig = mkOption {
type = types.lines;
default = "" ; default = "" ;
description = '' description = ''
Extra configuration. Contents will be added verbatim to the configuration file. Extra configuration. Contents will be added verbatim to the configuration file.

View File

@ -195,6 +195,7 @@ in
}; };
extraConfig = mkOption { extraConfig = mkOption {
type = types.lines;
default = ''''; default = '''';
description = "Additional prosody configuration"; description = "Additional prosody configuration";
}; };

View File

@ -244,7 +244,7 @@ in
description = "Target configuration"; description = "Target configuration";
}; };
extraConfig = mkOption { extraConfig = mkOption {
type = types.string; type = types.lines;
default = ""; default = "";
description = "Any additional customization not already included."; description = "Any additional customization not already included.";
}; };

View File

@ -79,7 +79,7 @@ in
extraConfig = mkOption { extraConfig = mkOption {
default = ""; default = "";
type = types.str; type = types.lines;
description = '' description = ''
Extra unbound config. See Extra unbound config. See
<citerefentry><refentrytitle>unbound.conf</refentrytitle><manvolnum>8 <citerefentry><refentrytitle>unbound.conf</refentrytitle><manvolnum>8

View File

@ -124,7 +124,7 @@ in
}; };
extraConfig = mkOption { extraConfig = mkOption {
type = types.string; type = types.lines;
default = ""; default = "";
description = "Extra configuration-lines added to the section of the service."; description = "Extra configuration-lines added to the section of the service.";
}; };

View File

@ -288,6 +288,7 @@ in
}; };
extraConfig = mkOption { extraConfig = mkOption {
type = types.lines;
default = ""; default = "";
example = example =
'' ''

View File

@ -164,6 +164,7 @@ in
extraConfig = mkOption { extraConfig = mkOption {
type = types.lines;
default = ""; default = "";
example = example =
'' ''

View File

@ -212,6 +212,7 @@ in
example = "[ \"en_GB\" \"de_DE\" ];"; example = "[ \"en_GB\" \"de_DE\" ];";
}; };
extraConfig = mkOption { extraConfig = mkOption {
type = types.lines;
default = ""; default = "";
example = example =
'' ''

View File

@ -86,7 +86,7 @@ in
}; };
extraConfig = mkOption { extraConfig = mkOption {
type = types.str; type = types.lines;
default = ""; default = "";
example = '' example = ''
[Autologin] [Autologin]