Admins will be upgrading ORNL GitLab Servers on Saturday, 16 May 2026, from 7 AM until 11 AM EST. Repositories will experience intermittent outages during this time.
# finds the images archive for the desired architecture, aborts in case no suitable archive is found
# finds the images archive for the desired architecture, throws in case no suitable archive is found
findImagesArchive=
arch:
let
@@ -146,17 +146,17 @@ let
in
lib.findFirst(
n:lib.hasInfixarchn
)(abort"k3s: no airgap images for ${arch} available")imagesVersionsNames;
)(throw"k3s: no airgap images for ${arch} available")imagesVersionsNames;
# a shortcut that provides the images archive for the host platform. Currently only supports
# aarch64 (arm64) and x86_64 (amd64), aborts on other architectures.
# aarch64 (arm64) and x86_64 (amd64), throws on other architectures.
airgapImages=fetchurl(
ifstdenv.hostPlatform.isAarch64then
imagesVersions.${findImagesArchive"arm64"}
elseifstdenv.hostPlatform.isx86_64then
imagesVersions.${findImagesArchive"amd64"}
else
abort"k3s: airgap images cannot be found automatically for architecture ${stdenv.hostPlatform.linuxArch}, consider using an image archive with an explicit architecture."
throw"k3s: airgap images cannot be found automatically for architecture ${stdenv.hostPlatform.linuxArch}, consider using an image archive with an explicit architecture."