Skip to content

Commit a9e8eff

Browse files
authored
nixos/xen: mark qemu as hiPrio
If user already has qemu installed in their system, there might be a collision between normal qemu-system-i386, and qemu-system-i386 with Xen support enabled In this case, we want Xen supported qemu to win, as otherwise systems won't start with the configuration we provide in NixOS wiki
1 parent e52c829 commit a9e8eff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nixos/modules/virtualisation/xen-dom0.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
let
1111
inherit (builtins) readFile;
12+
inherit (lib.meta) hiPrio;
1213
inherit (lib.modules) mkRemovedOptionModule mkRenamedOptionModule mkIf;
1314
inherit (lib.options)
1415
mkOption
@@ -797,7 +798,7 @@ in
797798
environment = {
798799
systemPackages = [
799800
cfg.package
800-
cfg.qemu.package
801+
(hiPrio cfg.qemu.package)
801802
];
802803
etc =
803804
# Set up Xen Domain 0 configuration files.

0 commit comments

Comments
 (0)