From ea40758e61a612fa399fb7ba7637cb8e4192020f Mon Sep 17 00:00:00 2001 From: David Wronek Date: Sun, 15 Mar 2026 16:26:44 +0100 Subject: [PATCH] nixos/wivrn: add option for Steam support Add a new `services.wivrn.steam.enable` option to let the user enable or disable Steam support. This option is enabled by default to not break existing setups. Signed-off-by: David Wronek --- nixos/modules/services/video/wivrn.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/video/wivrn.nix b/nixos/modules/services/video/wivrn.nix index 1f67c871eb0e..91d23c6a171a 100644 --- a/nixos/modules/services/video/wivrn.nix +++ b/nixos/modules/services/video/wivrn.nix @@ -106,6 +106,10 @@ in }; steam = { + enable = lib.mkEnableOption "Steam support" // { + default = true; + }; + importOXRRuntimes = mkEnableOption '' Sets `PRESSURE_VESSEL_IMPORT_OPENXR_1_RUNTIMES` system-wide to allow Steam to automatically discover the WiVRn server. @@ -211,12 +215,12 @@ in } ); # Needs Steam in the PATH to allow launching games from the headset - path = [ cfg.steam.package ]; + path = mkIf cfg.steam.enable [ cfg.steam.package ]; wantedBy = mkIf cfg.autoStart [ "default.target" ]; restartTriggers = [ cfg.package - cfg.steam.package - ]; + ] + ++ lib.optionals cfg.steam.enable [ cfg.steam.package ]; }; }; };