VR: Difference between revisions
Marked this version for translation |
Remove services.wivrn.defaultRuntime from example configuration, WiVRn manages the active runtime configuration itself and having it set this way will hang apps if a headset is not connected |
||
| (4 intermediate revisions by 3 users not shown) | |||
| Line 139: | Line 139: | ||
enable = true; | enable = true; | ||
openFirewall = true; | openFirewall = true; | ||
# Run WiVRn as a systemd service on startup | # Run WiVRn as a systemd service on startup | ||
autoStart = true; | autoStart = true; | ||
# | # If you're running this with an nVidia GPU and want to use GPU Encoding (and don't otherwise have CUDA enabled system wide), you need to override the cudaSupport variable. | ||
package = (pkgs.wivrn.override { cudaSupport = true; }); | |||
# You should use the default configuration (which is no configuration), as that works the best out of the box. | |||
# However, if you need to configure something see https://github.com/WiVRn/WiVRn/blob/master/docs/configuration.md for configuration options and https://mynixos.com/nixpkgs/option/services.wivrn.config.json for an example configuration. | |||
};|name=configuration.nix|lang=nix}} | |||
<translate> | <translate> | ||
| Line 259: | Line 238: | ||
}} | }} | ||
{{file|/etc/nixos/bwrap.patch|diff|3=diff --git a/bubblewrap.c b/bubblewrap.c | {{file|/etc/nixos/bwrap.patch|diff|3=diff --git a/bubblewrap.c b/bubblewrap.c | ||
index | index 69d319b..02e117d 100644 | ||
--- a/bubblewrap.c | --- a/bubblewrap.c | ||
+++ b/bubblewrap.c | +++ b/bubblewrap.c | ||
@@ - | @@ -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 (); | ||