summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Smith <jsubuntuxp@disroot.org>2025-11-23 19:38:41 -0700
committerHilton Chain <hako@ultrarare.space>2026-01-05 18:44:26 +0800
commita3e6ee95bafd09d38e1b886f2fb3380385554c2e (patch)
tree3e49614db4602ed5907281048cbc68bd048f64f9
parente81ab243d0bd7cdd1c61cd38612975b1dcaded02 (diff)
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>
-rw-r--r--nonguix/multiarch-container.scm13
1 files 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 <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