VR: Difference between revisions
imported>PassiveLemon m Make a note about SteamVR messing with openvrpaths.vrpath |
m Fix code blocks |
||
| Line 5: | Line 5: | ||
Monado can be configured using its NixOS options since 24.05: | Monado can be configured using its NixOS options since 24.05: | ||
{{file|/etc/nixos/configuration.nix|nix| | {{file|/etc/nixos/configuration.nix|nix|3=services.monado = { | ||
services.monado = { | |||
enable = true; | enable = true; | ||
defaultRuntime = true; # Register as default OpenXR runtime | defaultRuntime = true; # Register as default OpenXR runtime | ||
}; | };}} | ||
In order to configure Monado, you might want to add additional environment variables: | In order to configure Monado, you might want to add additional environment variables: | ||
{{file|/etc/nixos/configuration.nix|nix| | {{file|/etc/nixos/configuration.nix|nix|3=systemd.user.services.monado.environment = { | ||
systemd.user.services.monado.environment = { | |||
STEAMVR_LH_ENABLE = "1"; | STEAMVR_LH_ENABLE = "1"; | ||
XRT_COMPOSITOR_COMPUTE = "1"; | XRT_COMPOSITOR_COMPUTE = "1"; | ||
}; | };}} | ||
For further information about available environment variables and tweaks, read the [https://lvra.gitlab.io/docs/fossvr/monado/ Linux VR Adventures wiki] and the [https://monado.freedesktop.org/getting-started.html#environment-variables Monado documentation about environment variables] | For further information about available environment variables and tweaks, read the [https://lvra.gitlab.io/docs/fossvr/monado/ Linux VR Adventures wiki] and the [https://monado.freedesktop.org/getting-started.html#environment-variables Monado documentation about environment variables] | ||
| Line 33: | Line 29: | ||
An example configuration for enabling OpenComposite may look like this: | An example configuration for enabling OpenComposite may look like this: | ||
{{file|~/.config/home-manager/home.nix|nix| | {{file|~/.config/home-manager/home.nix|nix|3=xdg.configFile."openvr/openvrpaths.vrpath".text = '' | ||
xdg.configFile."openvr/openvrpaths.vrpath".text = '' | |||
{ | { | ||
"config" : | "config" : | ||
| Line 52: | Line 47: | ||
"version" : 1 | "version" : 1 | ||
} | } | ||
''; | '';}} | ||
If you are planning to play any OpenVR game on Steam or OpenXR games through Proton, you will have to use OpenComposite in this manner. In most cases you also have to allow access to the socket path of your OpenXR runtime to Steam's runtime, by using the following launch options for XR applications on Steam: <code>env PRESSURE_VESSEL_FILESYSTEMS_RW=$XDG_RUNTIME_DIR/monado_comp_ipc %command%</code>. This example is for Monado, while other XR runtimes might differ. | If you are planning to play any OpenVR game on Steam or OpenXR games through Proton, you will have to use OpenComposite in this manner. In most cases you also have to allow access to the socket path of your OpenXR runtime to Steam's runtime, by using the following launch options for XR applications on Steam: <code>env PRESSURE_VESSEL_FILESYSTEMS_RW=$XDG_RUNTIME_DIR/monado_comp_ipc %command%</code>. This example is for Monado, while other XR runtimes might differ. | ||