@@ -18,7 +18,7 @@ let
1818
1919 ${cfg.config}
2020
21− ${optionalString (cfg.httpConfig == "") ''
21+ ${optionalString (cfg.httpConfig == "" && cfg.config == "") ''
2222 http {
2323 include ${cfg.package}/conf/mime.types;
2424 include ${cfg.package}/conf/fastcgi.conf;
@@ -233,9 +233,12 @@ in
233233 };
234234
235235 config = mkOption {
236− default = "events {}";
236+ default = "";
237237 description = "
238238 Verbatim nginx.conf configuration.
239+ This is mutually exclusive with the structured configuration
240+ via virtualHosts and the recommendedXyzSettings configuration
241+ options. See appendConfig for appending to the generated http block.
239242 ";
240243 };
241244
@@ -268,8 +271,8 @@ in
268271 default = "";
269272 description = "
270273 Configuration lines to be appended to the generated http block.
271− This is mutually exclusive with using httpConfig for specifying the whole
272− http block verbatim.
274+ This is mutually exclusive with using config and httpConfig for
275+ specifying the whole http block verbatim.
273276 ";
274277 };
275278