From 8a8f67bdda2da7fb2ebe25878c6eef5b9f5c13b0 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Mon, 21 Dec 2020 00:53:17 +0100 Subject: [PATCH] nixos-modules: set qemu options in hardware.nix --- nixos-modules/hardware.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos-modules/hardware.nix b/nixos-modules/hardware.nix index 4d776fc..68e17c0 100644 --- a/nixos-modules/hardware.nix +++ b/nixos-modules/hardware.nix @@ -452,6 +452,11 @@ with lib; ''; }; + virtualisation.qemu.options = lib.optional config.hardware.genode.usb.enable + (lib.optional (pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64) "-usb" + ++ lib.optional (pkgs.stdenv.isAarch32 || pkgs.stdenv.isAarch64) + "-device usb-ehci,id=usb0"); + }; }