From 6132a72444bc970789f7805a6d5bd61bc9783743 Mon Sep 17 00:00:00 2001
From: Sapphire <imsapphire0@gmail.com>
Date: Thu, 10 Apr 2025 21:09:06 -0500
Subject: [PATCH] fossvr/wivrn: Add env vars for NixOS lighthouse setup

---
 content/docs/fossvr/wivrn/_index.md | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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