Skip to content

Latest commit

 

History

History
52 lines (49 loc) · 1.42 KB

README.md

File metadata and controls

52 lines (49 loc) · 1.42 KB

SteamVR

Custom module to allow you to override the SteamVR OpenVR and OpenXR runtime. Only one configuration format can be used for each: json, text, or path.

Note

Tildes (~) get expanded to your home path. For example, ~/.local/share/ will literally get evaluated to /home/(user)/.local/share/

Example usage

# home.nix
{
  programs.steamvr = {
    openvrRuntimeOverride = {
      enable = true;
      config = "json";
      json = {
        config = [
          "${config.home.homeDirectory}/.local/share/Steam/config"
        ];
        external_drivers = [ ];
        jsonid = "vrpathreg";
        log = [
          "${config.home.homeDirectory}/.local/share/Steam/logs"
        ];
        runtime = [
          "${pkgs.opencomposite}/lib/opencomposite"
        ];
        version = 1;
      };
    };
    openxrRuntimeOverride = {
      enable = true;
      config = "json";
      # Note: Path is not used if config is set to json, this is just for an example.
      path = "${pkgs.wivrn}/share/openxr/1/openxr_wivrn.json";
      json = {
        file_format_version = "1.0.0";
        runtime = {
          name = "Monado";
          library_path = "${pkgs.wivrn}/lib/wivrn/libopenxr_wivrn.so";
          MND_libmonado_path = "${pkgs.wivrn}/lib/wivrn/libmonado.so";
        };
      };
    };
    helperScript = {
      enable = true;
      openvrRuntime = "opencomposite";
      openxrRuntime = "wivrn";
    };
  };
}