VR: Difference between revisions

Ravoyax (talk | contribs)
m Fix spelling mistakes
m Link to "delete steam dir" possible solution
 
(4 intermediate revisions by 4 users not shown)
Line 139: Line 139:
   enable = true;
   enable = true;
   openFirewall = true;
   openFirewall = true;
  # Write information to /etc/xdg/openxr/1/active_runtime.json, VR applications
  # will automatically read this and work with WiVRn (Note: This does not currently
  # apply for games run in Valve's Proton)
    defaultRuntime = true;


   # Run WiVRn as a systemd service on startup
   # Run WiVRn as a systemd service on startup
Line 220: Line 215:


<!--T:44-->
<!--T:44-->
By modifying the bubblewrap binary used for running Steam, you can allow processes in that FHS environment to acquire capabilities. This removes the need for patching the kernel directly.
By modifying the bubblewrap binary used for running Steam, you can allow processes in that FHS environment to acquire capabilities. This removes the need for patching the kernel directly. This may become unnecessary if [https://github.com/containers/bubblewrap/issues/653 bubblewrap #653] is merged and the flag is added to Steam's tooling.
 
'''As of 2026-05, this may no longer be viable:''' Steam now aggressively restores its own pressure vessel srt-bwrap on startup, however deleting <code>~/.local/share/Steam/</code> has been [https://discourse.nixos.org/t/steam-fails-to-launch-with-patched-bwrap/75167 reported] to help.
</translate>
</translate>


Line 242: Line 239:
};
};
}}
}}
{{file|/etc/nixos/bwrap.patch|diff|3=diff --git a/bubblewrap.c b/bubblewrap.c
{{file|3=diff --git a/bubblewrap.c b/bubblewrap.c
index 8322ea0..4e20262 100644
index f8728c7..42cfe2e 100644
--- a/bubblewrap.c
--- a/bubblewrap.c
+++ b/bubblewrap.c
+++ b/bubblewrap.c
@@ -868,13 +868,6 @@ acquire_privs (void)
@@ -876,13 +876,6 @@ acquire_privs (void)
       /* Keep only the required capabilities for setup */
       /* Keep only the required capabilities for setup */
       set_required_caps ();
       set_required_caps ();
Line 260: Line 257:
     {
     {
       /* If our uid is 0, default to inheriting all caps; the caller
       /* If our uid is 0, default to inheriting all caps; the caller
}}
|name=bwrap.patch|lang=diff}}


<translate>
<translate>