nixos: use types.lines for extraConfig
This commit is contained in:
parent
795f968b17
commit
b675619391
@ -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,
|
||||||
|
@ -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.
|
||||||
'';
|
'';
|
||||||
|
@ -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";
|
||||||
};
|
};
|
||||||
|
@ -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.";
|
||||||
|
@ -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.
|
||||||
|
@ -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.";
|
||||||
};
|
};
|
||||||
|
@ -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";
|
||||||
};
|
};
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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' />
|
||||||
|
@ -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.
|
||||||
'';
|
'';
|
||||||
|
@ -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
|
||||||
|
@ -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.
|
||||||
|
@ -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
|
||||||
|
@ -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>.";
|
||||||
};
|
};
|
||||||
|
@ -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.
|
||||||
'';
|
'';
|
||||||
|
@ -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;
|
||||||
|
@ -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.";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -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.'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -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.";
|
||||||
};
|
};
|
||||||
|
@ -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.
|
||||||
|
@ -195,6 +195,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = mkOption {
|
extraConfig = mkOption {
|
||||||
|
type = types.lines;
|
||||||
default = '''';
|
default = '''';
|
||||||
description = "Additional prosody configuration";
|
description = "Additional prosody configuration";
|
||||||
};
|
};
|
||||||
|
@ -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.";
|
||||||
};
|
};
|
||||||
|
@ -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
|
||||||
|
@ -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.";
|
||||||
};
|
};
|
||||||
|
@ -288,6 +288,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = mkOption {
|
extraConfig = mkOption {
|
||||||
|
type = types.lines;
|
||||||
default = "";
|
default = "";
|
||||||
example =
|
example =
|
||||||
''
|
''
|
||||||
|
@ -164,6 +164,7 @@ in
|
|||||||
|
|
||||||
|
|
||||||
extraConfig = mkOption {
|
extraConfig = mkOption {
|
||||||
|
type = types.lines;
|
||||||
default = "";
|
default = "";
|
||||||
example =
|
example =
|
||||||
''
|
''
|
||||||
|
@ -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 =
|
||||||
''
|
''
|
||||||
|
@ -86,7 +86,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = mkOption {
|
extraConfig = mkOption {
|
||||||
type = types.str;
|
type = types.lines;
|
||||||
default = "";
|
default = "";
|
||||||
example = ''
|
example = ''
|
||||||
[Autologin]
|
[Autologin]
|
||||||
|
Loading…
Reference in New Issue
Block a user