monado: First work
All checks were successful
check / check (push) Successful in 33s

This commit is contained in:
Florian RICHER 2025-07-19 19:51:59 +02:00
parent c9e30826a0
commit f1fb5f4eba
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
3 changed files with 44 additions and 0 deletions

View file

@ -55,6 +55,8 @@
printing.enable = true;
steering-wheel.enable = true;
};
services.monado.enable = true;
};
chaotic.mesa-git = {

View file

@ -4,6 +4,7 @@
imports = [
./distrobox.nix
./docker.nix
./monado.nix
./ollama.nix
./openssh.nix
];

View file

@ -0,0 +1,41 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.modules.system.services.monado;
in
{
options.modules.system.services.monado = {
enable = mkEnableOption ''
Enable monado with my custom configurations
'';
};
config = mkIf cfg.enable {
# https://github.com/NixOS/nixpkgs/issues/258196
services.monado = {
enable = true;
defaultRuntime = true;
};
systemd.user.services.monado.environment = {
STEAMVR_LH_ENABLE = "1";
XRT_COMPOSITOR_COMPUTE = "1";
};
environment.variables = {
STEAMVR_LH_ENABLE = "1";
XRT_COMPOSITOR_COMPUTE = "1";
WMR_HANDTRACKING = "0";
VIT_SYSTEM_LIBRARY_PATH = "${pkgs.basalt-monado}/lib/libbasalt.so";
};
home-manager.users.florian.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;
};
};
}