nixpkgs/pkgs/development/libraries/opencomposite/helper.nix
Sefa Eyeoglu 01b54c0f25
opencomposite: init at unstable-2023-07-02
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-09-11 10:33:54 +02:00

18 lines
514 B
Nix

{ writeShellApplication
, monado
, opencomposite
}:
writeShellApplication {
name = "opencomposite-helper";
text = ''
# Tell Proton to use OpenComposite instead of OpenVR
export VR_OVERRIDE=${opencomposite}/lib/opencomposite
# Help OpenComposite find the OpenXR runtime
export XR_RUNTIME_JSON=${monado}/share/openxr/1/openxr_monado.json
# Tell Steam Pressure Vessel to allow access to Monado
export PRESSURE_VESSEL_FILESYSTEMS_RW=$XDG_RUNTIME_DIR/monado_comp_ipc
exec "$@"
'';
}