Monado (vr) updates

This commit is contained in:
Chris Thompson 2025-01-06 14:48:24 -05:00
parent afab34e62e
commit 9cb2c6be9a
2 changed files with 29 additions and 2 deletions

View file

@ -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

View file

@ -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;
}