diff --git a/hosts/default/configuration.nix b/hosts/default/configuration.nix index c8cf4da..3a7a6f2 100644 --- a/hosts/default/configuration.nix +++ b/hosts/default/configuration.nix @@ -362,8 +362,11 @@ services.monado = { enable = true; defaultRuntime = true; # Register as default OpenXR runtime - #environment.WMR_HANDTRACKING = "1"; # Enable for hand tracking - #environment.U_PACING_COMP_MIN_TIME_MS = "5"; # This is a tweak for something...I forgot + }; + systemd.user.services.monado.environment = { + WMR_HANDTRACKING = "1"; # Enable for hand tracking + XRT_PRINT_OPTIONS = "1"; # Enable printing env vars set/available + #U_PACING_COMP_MIN_TIME_MS = "5"; # This is a tweak for something...I forgot }; # allow clock adjustments/priority change, etc (gamemoderun ./game) # https://wiki.nixos.org/wiki/GameMode diff --git a/hosts/default/home.nix b/hosts/default/home.nix index 3d20564..e4f5fcd 100644 --- a/hosts/default/home.nix +++ b/hosts/default/home.nix @@ -70,7 +70,31 @@ home.sessionVariables = { # EDITOR = "emacs"; }; + # For Monado: + xdg.configFile."openxr/1/active_runtime.json".source = "${pkgs.monado}/share/openxr/1/openxr_monado.json"; + # For WiVRn: + #xdg.configFile."openxr/1/active_runtime.json".source = "${pkgs.wivrn}/share/openxr/1/openxr_wivrn.json"; + + xdg.configFile."openvr/openvrpaths.vrpath".text = '' + { + "config" : + [ + "${config.xdg.dataHome}/Steam/config" + ], + "external_drivers" : null, + "jsonid" : "vrpathreg", + "log" : + [ + "${config.xdg.dataHome}/Steam/logs" + ], + "runtime" : + [ + "${pkgs.opencomposite}/lib/opencomposite" + ], + "version" : 1 + } + ''; # Let Home Manager install and manage itself. programs.home-manager.enable = true; }