pkgs/top-level/metrics.nix: turn off aliases in the evaluation

This mirrors `ci/eval` and also prevents many warnings from being logged.
This commit is contained in:
Philip Taron
2025-09-16 05:28:59 -07:00
parent 4973d53405
commit 8ac12754ce
+7
View File
@@ -201,4 +201,11 @@ stdenvNoCC.mkDerivation {
exit_status = "%x";
command = "%C";
};
# Don't allow aliases anywhere in Nixpkgs for the metrics.
env.NIXPKGS_CONFIG = builtins.toFile "nixpkgs-config.nix" ''
{
allowAliases = false;
}
'';
}