nonguix: multiarch-container: Let SteamVR access VR headsets.

* nonguix/multiarch-container.scm (make-container-wrapper): Expose all of /sys
to allow SteamVR to access VR headsets.

Signed-off-by: Hilton Chain <hako@ultrarare.space>
This commit is contained in:
James Smith 2025-11-23 19:38:41 -07:00 committed by Hilton Chain
parent e81ab243d0
commit a3e6ee95ba
No known key found for this signature in database
GPG key ID: ACC66D09CA528292

View file

@ -9,6 +9,7 @@
;;; Copyright © 2023 Attila Lendvai <attila@lendvai.name>
;;; Copyright © 2023 Elijah Malaby
;;; Copyright © 2023 Timo Wilken <guix@twilken.net>
;;; Copyright © 2025 James Smith <jsubuntuxp@disroot.org>
;;; The script provided by this package may optionally be started as
;;; a shell instead of automatically launching the wrapped entrypoint by setting
@ -335,14 +336,10 @@ in a sandboxed FHS environment."
,@(exists-> "/etc/machine-id")
"/etc/localtime" ; Needed for correct time zone.
"/etc/os-release" ; Needed for distro info.
"/sys/class/drm" ; Needed for hw monitoring like MangoHud.
"/sys/class/hwmon" ; Needed for hw monitoring like MangoHud.
"/sys/class/hidraw" ; Needed for devices like the Valve Index.
"/sys/class/input" ; Needed for controller input.
,@(exists-> "/sys/class/power_supply") ; Needed for power monitoring like MangoHud.
,@(exists-> "/sys/class/powercap") ; Needed for power monitoring like MangoHud.
"/sys/dev"
"/sys/devices"
;; /sys needs to be shared directly for SteamVR to
;; access the HMD. Tested with both Monado and
;; OpenHMD with an Oculus Rift CV1.
"/sys"
,@(exists-> "/var/run/dbus")
#$@(ngc-exposed container)))
;; /dev/hidraw is needed for SteamVR to access the HMD, although here we