nginx: add appendConfig option with types.lines

This commit is contained in:
Domen Kožar 2014-02-12 18:35:39 +01:00
parent 42c083df41
commit 85d38d1436

View File

@ -9,6 +9,7 @@ let
user ${cfg.user} ${cfg.group};
daemon off;
${cfg.config}
${cfg.appendConfig}
'';
in
@ -36,6 +37,19 @@ in
";
};
appendConfig = mkOption {
type = types.lines;
default = "";
description = ''
Configuration lines appended to the generated Nginx
configuration file. Commonly used by different modules
providing http snippets. <option>appendConfig</option>
can be specified more than once and it's value will be
concatenated (contrary to <option>config</option> which
can be set only once).
'';
};
stateDir = mkOption {
default = "/var/spool/nginx";
description = "