[Backport release-25.05] ci: disable allowAliases in the pinned pkgs instance (#435622)

This commit is contained in:
Philip Taron
2025-08-21 10:53:24 -07:00
committed by GitHub

View File

@@ -17,7 +17,12 @@ let
else
nixpkgs;
pkgs = import nixpkgs' { inherit system; };
pkgs = import nixpkgs' {
inherit system;
# Nixpkgs generally — and CI specifically — do not use aliases,
# because we want to ensure they are not load-bearing.
allowAliases = false;
};
fmt =
let
@@ -60,10 +65,12 @@ let
programs.keep-sorted.enable = true;
# This uses nixfmt underneath,
# the default formatter for Nix code.
# This uses nixfmt underneath, the default formatter for Nix code.
# See https://github.com/NixOS/nixfmt
programs.nixfmt.enable = true;
programs.nixfmt = {
enable = true;
package = pkgs.nixfmt;
};
programs.yamlfmt = {
enable = true;