From c0cbeb9d8e5a731ba88500fb01690cb92455fc25 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Tue, 5 May 2026 18:07:13 +0300 Subject: [PATCH 1/2] nixos/virtualisation: explain resolution is only relevant to grub --- nixos/modules/virtualisation/qemu-vm.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/virtualisation/qemu-vm.nix b/nixos/modules/virtualisation/qemu-vm.nix index b58cdd8ac5f7..5f9ef2eedc84 100644 --- a/nixos/modules/virtualisation/qemu-vm.nix +++ b/nixos/modules/virtualisation/qemu-vm.nix @@ -552,7 +552,7 @@ in y = 768; }; description = '' - The resolution of the virtual machine display. + The resolution of the virtual machine display (relevant only if virtualised machine uses grub bootloader). ''; }; From 44c6c2ef166cc796b417d9885b966489b23a2bf9 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Tue, 5 May 2026 22:56:15 +0300 Subject: [PATCH 2/2] nixos/virtualisation: remove hard-coded virtio-gpu-pci device from aarch machines In 9e78baf5c75ed87360dfcab4c5eeeee2256be2dc, Aarch machines were added the `-device virtio-gpu-pci` argument, to mirror `-vga std` option that was added unconditionally to virtualised x86_64 machines. Since then, in a7ca287ecb3bd5589d2f815a27f1152071d92b57, the `-vga std` option was removed, because that is the default value of this option embedded in QEMU since version 2.2. Removing it from the hard-coded list of qemu options makes it possible for the user to choose their own `-vga` value. Similarly, for Aarch virtualised machines, choosing unconditionally the `-device virtio-gpu-pci` option instead of e.g `-device virtio-gpu-gl-pci`, can be bothersome too - see: https://discourse.nixos.org/t/test-an-aarch64-linux-vm-wayland-compositor-from-an-x86-64-linux-host/77416/2 --- nixos/modules/virtualisation/qemu-vm.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/nixos/modules/virtualisation/qemu-vm.nix b/nixos/modules/virtualisation/qemu-vm.nix index 5f9ef2eedc84..1d879218a690 100644 --- a/nixos/modules/virtualisation/qemu-vm.nix +++ b/nixos/modules/virtualisation/qemu-vm.nix @@ -1380,7 +1380,6 @@ in "-device usb-tablet,bus=usb-bus.0" ]) (mkIf pkgs.stdenv.hostPlatform.isAarch [ - "-device virtio-gpu-pci" "-device usb-ehci,id=usb0" "-device usb-kbd" "-device usb-tablet"