diff --git a/nixos/tests/boot.nix b/nixos/tests/boot.nix index 11e88bd3d891..2cf3a4aa89ce 100644 --- a/nixos/tests/boot.nix +++ b/nixos/tests/boot.nix @@ -65,20 +65,22 @@ let iso = (import ../lib/eval-config.nix { - inherit system; modules = [ ../modules/installer/cd-dvd/installation-cd-minimal.nix ../modules/testing/test-instrumentation.nix + { nixpkgs.pkgs = pkgs; } ]; }).config.system.build.isoImage; sd = (import ../lib/eval-config.nix { - inherit system; modules = [ ../modules/installer/sd-card/sd-image-x86_64.nix ../modules/testing/test-instrumentation.nix - { sdImage.compressImage = false; } + { + sdImage.compressImage = false; + nixpkgs.pkgs = pkgs; + } ]; }).config.system.build.sdImage; @@ -109,7 +111,6 @@ let let config = (import ../lib/eval-config.nix { - inherit system; modules = [ ../modules/installer/netboot/netboot.nix ../modules/testing/test-instrumentation.nix @@ -118,6 +119,8 @@ let "serial" "live.nixos.passwordHash=$6$jnwR50SkbLYEq/Vp$wmggwioAkfmwuYqd5hIfatZWS/bO6hewzNIwIrWcgdh7k/fhUzZT29Vil3ioMo94sdji/nipbzwEpxecLZw0d0" # "password" ]; + + nixpkgs.pkgs = pkgs; } { key = "serial"; diff --git a/nixos/tests/ec2.nix b/nixos/tests/ec2.nix index 5964ea875088..6040e9320d8f 100644 --- a/nixos/tests/ec2.nix +++ b/nixos/tests/ec2.nix @@ -12,7 +12,6 @@ with import common/ec2.nix { inherit makeTest pkgs; }; let imageCfg = (import ../lib/eval-config.nix { - inherit system; modules = [ ../maintainers/scripts/ec2/amazon-image.nix ../modules/testing/test-instrumentation.nix @@ -54,6 +53,8 @@ let apacheHttpd.man valgrind.doc ]); + + nixpkgs.pkgs = pkgs; } ]; }).config; diff --git a/nixos/tests/image-contents.nix b/nixos/tests/image-contents.nix index 473032cec73e..a13eb425efa9 100644 --- a/nixos/tests/image-contents.nix +++ b/nixos/tests/image-contents.nix @@ -14,7 +14,6 @@ with import common/ec2.nix { inherit makeTest pkgs; }; let config = (import ../lib/eval-config.nix { - inherit system; modules = [ ../modules/testing/test-instrumentation.nix ../modules/profiles/qemu-guest.nix @@ -22,6 +21,7 @@ let fileSystems."/".device = "/dev/disk/by-label/nixos"; boot.loader.grub.device = "/dev/vda"; boot.loader.timeout = 0; + nixpkgs.pkgs = pkgs; } ]; }).config; diff --git a/nixos/tests/openstack-image.nix b/nixos/tests/openstack-image.nix index 8fcfde974668..e0b99be6e4dc 100644 --- a/nixos/tests/openstack-image.nix +++ b/nixos/tests/openstack-image.nix @@ -12,7 +12,6 @@ with import common/ec2.nix { inherit makeTest pkgs; }; let image = (import ../lib/eval-config.nix { - inherit system; modules = [ ../maintainers/scripts/openstack/openstack-image.nix ../modules/testing/test-instrumentation.nix @@ -22,6 +21,8 @@ let system.extraDependencies = with pkgs; [ stdenv ]; + + nixpkgs.pkgs = pkgs; } ]; }).config.system.build.openstackImage diff --git a/nixos/tests/systemd-machinectl.nix b/nixos/tests/systemd-machinectl.nix index 5866c6d7603f..0e36e00e6b26 100644 --- a/nixos/tests/systemd-machinectl.nix +++ b/nixos/tests/systemd-machinectl.nix @@ -20,11 +20,12 @@ import ./make-test-python.nix ( imports = [ ../modules/profiles/minimal.nix ]; system.stateVersion = config.system.nixos.release; + + nixpkgs.pkgs = pkgs; }; containerSystem = (import ../lib/eval-config.nix { - inherit (pkgs) system; modules = [ container ]; }).config.system.build.toplevel;