diff options
author | Domen Kožar <domen@dev.si> | 2014-02-12 18:35:39 +0100 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2014-02-12 19:13:36 +0100 |
commit | 85d38d143631b93841242215067c4a7c3538e81e (patch) | |
tree | 112911e419e453bb94afa56880a41f14e701e7cd /nixos/modules/services/web-servers | |
parent | 42c083df4110237032a0667158535ccf8cd1812b (diff) | |
download | nixlib-85d38d143631b93841242215067c4a7c3538e81e.tar nixlib-85d38d143631b93841242215067c4a7c3538e81e.tar.gz nixlib-85d38d143631b93841242215067c4a7c3538e81e.tar.bz2 nixlib-85d38d143631b93841242215067c4a7c3538e81e.tar.lz nixlib-85d38d143631b93841242215067c4a7c3538e81e.tar.xz nixlib-85d38d143631b93841242215067c4a7c3538e81e.tar.zst nixlib-85d38d143631b93841242215067c4a7c3538e81e.zip |
nginx: add appendConfig option with types.lines
Diffstat (limited to 'nixos/modules/services/web-servers')
-rw-r--r-- | nixos/modules/services/web-servers/nginx/default.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/nixos/modules/services/web-servers/nginx/default.nix b/nixos/modules/services/web-servers/nginx/default.nix index 4a1b6de2873f..512da831aa39 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. <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 = " |