From 85d38d143631b93841242215067c4a7c3538e81e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Wed, 12 Feb 2014 18:35:39 +0100 Subject: [PATCH] nginx: add appendConfig option with types.lines --- .../modules/services/web-servers/nginx/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/nixos/modules/services/web-servers/nginx/default.nix b/nixos/modules/services/web-servers/nginx/default.nix index 4a1b6de2873..512da831aa3 100644 --- a/nixos/modules/services/web-servers/nginx/default.nix +++ b/nixos/modules/services/web-servers/nginx/default.nix @@ -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. + can be specified more than once and it's value will be + concatenated (contrary to which + can be set only once). + ''; + }; + stateDir = mkOption { default = "/var/spool/nginx"; description = "