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
This commit is contained in:
Lach
2025-09-05 18:32:31 +02:00
committed by GitHub
parent e52c82911e
commit a9e8eff4e4

View File

@@ -9,6 +9,7 @@
let
inherit (builtins) readFile;
inherit (lib.meta) hiPrio;
inherit (lib.modules) mkRemovedOptionModule mkRenamedOptionModule mkIf;
inherit (lib.options)
mkOption
@@ -797,7 +798,7 @@ in
environment = {
systemPackages = [
cfg.package
cfg.qemu.package
(hiPrio cfg.qemu.package)
];
etc =
# Set up Xen Domain 0 configuration files.