Unverified Commit a36b8083 authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

ci: disable `allowAliases` in the pinned pkgs instance (#435597)

parents 134e0f90 f646e56d
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
@@ -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;