@@ -14,10 +14,11 @@ with import ../../lib/qemu-flags.nix { inherit pkgs; };
1414
1515let
1616
17− qemu = config.system.build.qemu or pkgs.qemu_test;
1817
1918 cfg = config.virtualisation;
2019
20+ qemu = cfg.qemu.package;
21+
2122 consoles = lib.concatMapStringsSep " " (c: "console=${c}") cfg.qemu.consoles;
2223
2324 driveOpts = { ... }: {
@@ -401,6 +402,14 @@ in
401402 };
402403
403404 virtualisation.qemu = {
405+ package =
406+ mkOption {
407+ type = types.package;
408+ default = pkgs.qemu;
409+ example = "pkgs.qemu_test";
410+ description = "QEMU package to use.";
411+ };
412+
404413 options =
405414 mkOption {
406415 type = types.listOf types.unspecified;