feat: add -usb and -kvm flags

This commit is contained in:
Job
2025-10-31 11:43:28 +01:00
parent 407ba8afae
commit bb43c758f9

View File

@@ -49,6 +49,10 @@ param_args() {
case "$1" in
-gpu) # Enable gpu acceleration.
arg "--device /dev/dri" ;;
-kvm) # Enable KVM.
arg "--device /dev/kvm" ;;
-usb) # Enable USB access.
arg "--device /dev/bus/usb" ;;
-host-spawn) # Enable spawning host commands from inside the container using host-spawn.
arg "-v /run/user/$UID/bus:/tmp/bus"
arg "-e HOST_HOME=$HOME" # Used to translate paths.