nixosTest: fix tests defined with pkgs.nixosTest
This commit is contained in:
@@ -28,9 +28,9 @@ let
|
|||||||
{
|
{
|
||||||
virtualisation.qemu.package = testModuleArgs.config.qemu.package;
|
virtualisation.qemu.package = testModuleArgs.config.qemu.package;
|
||||||
})
|
})
|
||||||
(optionalAttrs (!config.node.pkgsReadOnly) {
|
({ options, ... }: {
|
||||||
key = "nodes.nix-pkgs";
|
key = "nodes.nix-pkgs";
|
||||||
config = {
|
config = mkIf (!options.nixpkgs.pkgs.isDefined) {
|
||||||
# Ensure we do not use aliases. Ideally this is only set
|
# Ensure we do not use aliases. Ideally this is only set
|
||||||
# when the test framework is used by Nixpkgs NixOS tests.
|
# when the test framework is used by Nixpkgs NixOS tests.
|
||||||
nixpkgs.config.allowAliases = false;
|
nixpkgs.config.allowAliases = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user