In NixOS you can enable HTTP/2 like this: services.httpd.extraModules = [ "http2" ]; services.httpd.extraConfig = '' Protocols h2 http/1.1 '';