Skip to content

Commit

Permalink
nixos/qemu-vm: Add virtualized display + HID devices on AArch64
Browse files Browse the repository at this point in the history
  • Loading branch information
dezgeg committed Mar 7, 2018
1 parent 5e378bc commit 42bb9eb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions nixos/modules/virtualisation/qemu-vm.nix
Expand Up @@ -434,9 +434,11 @@ in

virtualisation.pathsInNixDB = [ config.system.build.toplevel ];

# FIXME: Figure out how to make this work on non-x86
virtualisation.qemu.options =
mkIf (pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64) [ "-vga std" "-usbdevice tablet" ];
# FIXME: Consolidate this one day.
virtualisation.qemu.options = mkMerge [
(mkIf (pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64) [ "-vga std" "-usbdevice tablet" ])
(mkIf (pkgs.stdenv.isArm || pkgs.stdenv.isAarch64) [ "-device virtio-gpu-pci" "-device usb-ehci,id=usb0" "-device usb-kbd" "-device usb-tablet" ])
];

# Mount the host filesystem via 9P, and bind-mount the Nix store
# of the host into our own filesystem. We use mkVMOverride to
Expand Down

0 comments on commit 42bb9eb

Please sign in to comment.