Monado (vr) updates
This commit is contained in:
parent
afab34e62e
commit
9cb2c6be9a
2 changed files with 29 additions and 2 deletions
|
@ -362,8 +362,11 @@
|
||||||
services.monado = {
|
services.monado = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultRuntime = true; # Register as default OpenXR runtime
|
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)
|
# allow clock adjustments/priority change, etc (gamemoderun ./game)
|
||||||
# https://wiki.nixos.org/wiki/GameMode
|
# https://wiki.nixos.org/wiki/GameMode
|
||||||
|
|
|
@ -70,7 +70,31 @@
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
# EDITOR = "emacs";
|
# 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.
|
# Let Home Manager install and manage itself.
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue