@@ -434,9 +434,11 @@ in
434434
435435 virtualisation.pathsInNixDB = [ config.system.build.toplevel ];
436436
437− # FIXME: Figure out how to make this work on non-x86
438− virtualisation.qemu.options =
439− mkIf (pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64) [ "-vga std" "-usb" "-device usb-tablet,bus=usb-bus.0" ];
437+ # FIXME: Consolidate this one day.
438+ virtualisation.qemu.options = mkMerge [
439+ (mkIf (pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64) [ "-vga std" "-usb" "-device usb-tablet,bus=usb-bus.0" ])
440+ (mkIf (pkgs.stdenv.isArm || pkgs.stdenv.isAarch64) [ "-device virtio-gpu-pci" "-device usb-ehci,id=usb0" "-device usb-kbd" "-device usb-tablet" ])
441+ ];
440442
441443 # Mount the host filesystem via 9P, and bind-mount the Nix store
442444 # of the host into our own filesystem. We use mkVMOverride to