nixos: Bump nginx for NGINX2Root fixes

Override `nginxStable` and `nginxMainline` to 1.30.7 and 1.31.9 until
the pinned channels ship them. OpenResty has no fixed release yet, so
disable HTTP/2 on `spoder`'s vhosts in the meantime.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-19 00:26:50 +00:00
co-authored by Claude Opus 5.5
parent 3370823ed5
commit 01c8261de9
2 changed files with 20 additions and 1 deletions
+18
View File
@@ -91,6 +91,24 @@ in
preBuild = (old.preBuild or "") + "\nnpm run postinstall\n";
});
})
(final: prev:
let
# Bump nginx to a release with the NGINX2Root fixes until every pin ships one.
# TODO: Drop once all channels are past these versions.
bump = pkg: version: hash:
if prev.lib.versionOlder pkg.version version then
pkg.overrideAttrs {
inherit version;
src = final.fetchurl {
url = "https://nginx.org/download/nginx-${version}.tar.gz";
inherit hash;
};
} else pkg;
in
{
nginxStable = bump prev.nginxStable "1.30.7" "sha256-JWW1yDcFDpWPcPsPc8SOK8pFQq00n9NW9G+wxyYQvG4=";
nginxMainline = bump prev.nginxMainline "1.31.9" "sha256-oRxe7uLiV/RHjw5kn4SwBAeH0nfS0+UjOVKqa23LgK0=";
})
];
config = {
allowUnfree = true;