Set required nginx options and sane default

This commit is contained in:
orbitz 2013-04-14 11:17:16 +02:00
parent 8e7bb847c6
commit 388d83c586

View File

@ -5,6 +5,8 @@ with pkgs.lib;
let let
cfg = config.services.nginx; cfg = config.services.nginx;
configFile = pkgs.writeText "nginx.conf" '' configFile = pkgs.writeText "nginx.conf" ''
user nginx nginx;
daemon off;
${cfg.config} ${cfg.config}
''; '';
in in
@ -20,7 +22,7 @@ in
}; };
config = mkOption { config = mkOption {
default = ""; default = "events {}";
description = " description = "
Verbatim nginx.conf configuration. Verbatim nginx.conf configuration.
"; ";