fossvr/wivrn: Add env vars for NixOS lighthouse setup

This commit is contained in:
Sapphire 2025-04-10 21:09:06 -05:00
parent 5cc1ba51e3
commit 6132a72444
No known key found for this signature in database
GPG key ID: 642911AA4025C8CC

View file

@ -123,7 +123,7 @@ Set WiVRn Profile as such:
Perform a **Clean Build** after changing the CMake flags! Perform a **Clean Build** after changing the CMake flags!
### NixOS ### NixOS
Override the `wivrn` package: Override the `wivrn` package and launch wivrn-server with the required environment variables:
```nix ```nix
{ {
services.wivrn = { services.wivrn = {
@ -134,6 +134,10 @@ Override the `wivrn` package:
(lib.cmakeBool "WIVRN_FEATURE_STEAMVR_LIGHTHOUSE" true) (lib.cmakeBool "WIVRN_FEATURE_STEAMVR_LIGHTHOUSE" true)
]; ];
}); });
monadoEnvironment = {
WIVRN_USE_STEAMVR_LH = "1";
LH_DISCOVER_WAIT_MS = "6000";
};
}; };
} }
``` ```