From a3e6ee95bafd09d38e1b886f2fb3380385554c2e Mon Sep 17 00:00:00 2001 From: James Smith Date: Sun, 23 Nov 2025 19:38:41 -0700 Subject: 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 --- nonguix/multiarch-container.scm | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/nonguix/multiarch-container.scm b/nonguix/multiarch-container.scm index 5f0d145..705981b 100644 --- a/nonguix/multiarch-container.scm +++ b/nonguix/multiarch-container.scm @@ -9,6 +9,7 @@ ;;; Copyright © 2023 Attila Lendvai ;;; Copyright © 2023 Elijah Malaby ;;; Copyright © 2023 Timo Wilken +;;; Copyright © 2025 James Smith ;;; 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 -- cgit v1.2.3