nixos/modules/home/configs/monado.nix
Florian RICHER ed1a4501f7
All checks were successful
check / check (push) Successful in 34s
monado: Some changes
2025-07-19 22:24:45 +02:00

33 lines
No EOL
956 B
Nix

{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.modules.home.configs.monado;
in
{
options.modules.home.configs.monado = {
enable = mkEnableOption ''
Enable monado
'';
};
config = mkIf cfg.enable {
home.file.".local/share/monado/hand-tracking-models".source =
pkgs.fetchgit
{
url = "https://gitlab.freedesktop.org/monado/utilities/hand-tracking-models";
sha256 = "x/X4HyyHdQUxn3CdMbWj5cfLvV7UyQe1D01H93UCk+M=";
fetchLFS = true;
};
xdg.configFile."openxr/1/active_runtime.json".source = "${pkgs.monado}/share/openxr/1/openxr_monado.json";
xdg.configFile."openvr/openvrpaths.vrpath".text = builtins.toJSON {
config = [ "${config.xdg.dataHome}/Steam/config" ];
external_drivers = null;
jsonid = "vrpathreg";
log = [ "${config.xdg.dataHome}/Steam/logs" ];
runtime = [ "${pkgs.opencomposite}/lib/opencomposite" ];
version = 1;
};
};
}