diff options
Diffstat (limited to 'nixos/lib')
-rw-r--r-- | nixos/lib/testing/nodes.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/lib/testing/nodes.nix b/nixos/lib/testing/nodes.nix index f58759b4cdba0..c6ba2a4feac6e 100644 --- a/nixos/lib/testing/nodes.nix +++ b/nixos/lib/testing/nodes.nix @@ -28,9 +28,9 @@ let { virtualisation.qemu.package = testModuleArgs.config.qemu.package; }) - (optionalAttrs (!config.node.pkgsReadOnly) { + ({ options, ... }: { key = "nodes.nix-pkgs"; - config = { + config = 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; |