···1819 inherit pkgs;
2021- qemu = pkgs.qemu_test;
22-23-24 # Build a virtual network from an attribute set `{ machine1 =
25 # config1; ... machineN = configN; }', where `machineX' is the
26 # hostname and `configX' is a NixOS system configuration. Each
···39 [ ../modules/virtualisation/qemu-vm.nix
40 ../modules/testing/test-instrumentation.nix # !!! should only get added for automated test runs
41 { key = "no-manual"; documentation.nixos.enable = false; }
42- { key = "qemu"; system.build.qemu = qemu; }
43 { key = "nodes"; _module.args.nodes = nodes; }
44 ] ++ optional minimal ../modules/testing/minimal-kernel.nix;
45 };
···1819 inherit pkgs;
2000021 # Build a virtual network from an attribute set `{ machine1 =
22 # config1; ... machineN = configN; }', where `machineX' is the
23 # hostname and `configX' is a NixOS system configuration. Each
···36 [ ../modules/virtualisation/qemu-vm.nix
37 ../modules/testing/test-instrumentation.nix # !!! should only get added for automated test runs
38 { key = "no-manual"; documentation.nixos.enable = false; }
039 { key = "nodes"; _module.args.nodes = nodes; }
40 ] ++ optional minimal ../modules/testing/minimal-kernel.nix;
41 };
+4-1
nixos/modules/testing/test-instrumentation.nix
···51 # we avoid defining consoles if not possible.
52 # TODO: refactor such that test-instrumentation can import qemu-vm
53 # or declare virtualisation.qemu.console option in a module that's always imported
54- virtualisation = lib.optionalAttrs (options ? virtualisation.qemu.consoles) { qemu.consoles = [ qemuSerialDevice ]; };
0005556 boot.initrd.preDeviceCommands =
57 ''
···51 # we avoid defining consoles if not possible.
52 # TODO: refactor such that test-instrumentation can import qemu-vm
53 # or declare virtualisation.qemu.console option in a module that's always imported
54+ virtualisation.qemu = {
55+ consoles = lib.optional (options ? virtualisation.qemu.consoles) qemuSerialDevice;
56+ package = pkgs.qemu_test;
57+ };
5859 boot.initrd.preDeviceCommands =
60 ''