···161161 configFile =
162162 (if cfg.validateConfigFile then pkgs.writers.writeNginxConfig else pkgs.writeText) "nginx.conf"
163163 ''
164164+ ${cfg.prependConfig}
165165+164166 pid /run/nginx/nginx.pid;
165167 error_log ${cfg.logError};
166168 daemon off;
···828830829831 If additional verbatim config in addition to other options is needed,
830832 [](#opt-services.nginx.appendConfig) should be used instead.
833833+ '';
834834+ };
835835+836836+ prependConfig = mkOption {
837837+ type = types.lines;
838838+ default = "";
839839+ description = ''
840840+ Configuration lines prepended to the generated Nginx
841841+ configuration file. Can for example be used to load modules.
842842+ {option}`prependConfig` can be specified more than once
843843+ and its value will be concatenated (contrary to {option}`config`
844844+ which can be set only once).
831845 '';
832846 };
833847