nixosTest: fix tests defined with pkgs.nixosTest
This commit is contained in:
parent
b3e14b9045
commit
8a7282f90b
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue