···11+# This file defines the options that can be used both for the Nginx
22+# main server configuration, and for the virtual hosts. (The latter
33+# has additional options that affect the web server as a whole, like
44+# the user/group to run under.)
55+66+{ lib, ... }:
77+88+with lib;
99+{
1010+ options = {
1111+ serverAliases = mkOption {
1212+ type = types.listOf types.str;
1313+ default = [ ];
1414+ example = [ "www.example.org" "example.org" ];
1515+ description = ''
1616+ Additional names of virtual hosts served by this virtual host configuration.
1717+ '';
1818+ };
1919+2020+ extraConfig = mkOption {
2121+ type = types.lines;
2222+ default = "";
2323+ description = ''
2424+ These lines go into the vhost verbatim
2525+ '';
2626+ };
2727+ };
2828+}