From b01eebf021388d92a8aaba9339dcc1fa2270294d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Mon, 7 Sep 2015 14:17:33 +0200 Subject: [PATCH] nginx: include mimetypes mapping --- nixos/modules/services/web-servers/nginx/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/modules/services/web-servers/nginx/default.nix b/nixos/modules/services/web-servers/nginx/default.nix index fe50c182bfe5..25816446e999 100644 --- a/nixos/modules/services/web-servers/nginx/default.nix +++ b/nixos/modules/services/web-servers/nginx/default.nix @@ -8,9 +8,12 @@ let configFile = pkgs.writeText "nginx.conf" '' user ${cfg.user} ${cfg.group}; daemon off; + ${cfg.config} + ${optionalString (cfg.httpConfig != "") '' http { + include ${cfg.package}/conf/mime.types; ${cfg.httpConfig} } ''}