···9 user ${cfg.user} ${cfg.group};
10 daemon off;
11 ${cfg.config}
0000012 ${cfg.appendConfig}
13 '';
14in
···49 concatenated (contrary to <option>config</option> which
50 can be set only once).
51 '';
00000052 };
5354 stateDir = mkOption {
···9 user ${cfg.user} ${cfg.group};
10 daemon off;
11 ${cfg.config}
12+ ${optionalString (cfg.httpConfig != "") ''
13+ http {
14+ ${cfg.httpConfig}
15+ }
16+ ''}
17 ${cfg.appendConfig}
18 '';
19in
···54 concatenated (contrary to <option>config</option> which
55 can be set only once).
56 '';
57+ };
58+59+ httpConfig = mkOption {
60+ type = types.lines;
61+ default = "";
62+ description = "Configuration lines to be appended inside of the http {} block.";
63 };
6465 stateDir = mkOption {