nixos-modules: set qemu options in hardware.nix
This commit is contained in:
parent
222ca79126
commit
8a8f67bdda
|
@ -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");
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue