1 min read
nginx
Options
services.nginx.enable
Whether to enable nginx.
Type: boolean
Default:
false
Example:
true
Declared by:
services.nginx.package
The nginx package to use.
Type: package
Default:
pkgs.nginx
Declared by:
services.nginx.defaultMimeTypes
Default MIME types for NGINX, as MIME types definitions from NGINX are very incomplete, we use by default the ones bundled in the mailcap package, used by most of the other Linux distributions.
Type: absolute path
Default:
${pkgs.mailcap}/etc/nginx/mime.types
Example:
${pkgs.nginx}/conf/mime.types
Declared by:
services.nginx.eventsConfig
The nginx events configuration.
Type: strings concatenated with “\n”
Default:
""
Declared by:
services.nginx.httpConfig
The nginx configuration.
Type: strings concatenated with “\n”
Default:
""
Declared by:
Last updated Oct 11, 2026