Merge pull request #265836 from hercules-ci/nixosTests-no-surprises

nixos/testing/nodes: Do allow aliases

Changed files
-3
nixos
lib
testing
-3
nixos/lib/testing/nodes.nix
···
key = "nodes.nix-pkgs";
config = optionalAttrs (!config.node.pkgsReadOnly) (
mkIf (!options.nixpkgs.pkgs.isDefined) {
-
# Ensure we do not use aliases. Ideally this is only set
-
# when the test framework is used by Nixpkgs NixOS tests.
-
nixpkgs.config.allowAliases = false;
# TODO: switch to nixpkgs.hostPlatform and make sure containers-imperative test still evaluates.
nixpkgs.system = hostPkgs.stdenv.hostPlatform.system;
}
···
key = "nodes.nix-pkgs";
config = optionalAttrs (!config.node.pkgsReadOnly) (
mkIf (!options.nixpkgs.pkgs.isDefined) {
# TODO: switch to nixpkgs.hostPlatform and make sure containers-imperative test still evaluates.
nixpkgs.system = hostPkgs.stdenv.hostPlatform.system;
}