···114 description = "Path to server SSL certificate key.";
115 };
11600000000000000117 root = mkOption {
118 type = types.nullOr types.path;
119 default = null;
···114 description = "Path to server SSL certificate key.";
115 };
116117+ http2 = mkOption {
118+ type = types.bool;
119+ default = true;
120+ description = ''
121+ Whether to enable HTTP 2.
122+ Note that (as of writing) due to nginx's implementation, to disable
123+ HTTP 2 you have to disable it on all vhosts that use a given
124+ IP address / port.
125+ If there is one server block configured to enable http2,then it is
126+ enabled for all server blocks on this IP.
127+ See https://stackoverflow.com/a/39466948/263061.
128+ '';
129+ };
130+131 root = mkOption {
132 type = types.nullOr types.path;
133 default = null;