From 39c5525cb157b09dc5eae482bcff82a1c477ad2f Mon Sep 17 00:00:00 2001 From: Artturin Date: Fri, 10 Dec 2021 01:04:33 +0200 Subject: [PATCH] nixos/qemu-vm: add -device virtio-keyboard to opts by default a ps/2 keyboard input is used which seems to cause issues on aarch64-linux when the machine is used high load, causing the keymap qwertz test to always fail and azerty to sometimes fail See https://github.com/NixOS/nixpkgs/issues/147294 --- nixos/modules/virtualisation/qemu-vm.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/virtualisation/qemu-vm.nix b/nixos/modules/virtualisation/qemu-vm.nix index c7c3d7474645..fa3e25afb03e 100644 --- a/nixos/modules/virtualisation/qemu-vm.nix +++ b/nixos/modules/virtualisation/qemu-vm.nix @@ -835,6 +835,7 @@ in # FIXME: Consolidate this one day. virtualisation.qemu.options = mkMerge [ + [ "-device virtio-keyboard" ] (mkIf pkgs.stdenv.hostPlatform.isx86 [ "-usb" "-device usb-tablet,bus=usb-bus.0" ])