monado: Move to home module for home configs

This commit is contained in:
Florian RICHER 2025-07-19 20:29:21 +02:00
parent f1fb5f4eba
commit 1a26cefc18
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
5 changed files with 33 additions and 10 deletions

View file

@ -9,6 +9,8 @@
kitty.enable = true;
};
configs.monado.enable = true;
editors = {
neovim.enable = true;
vscode.enable = true;

View file

@ -0,0 +1,7 @@
{ ... }:
{
imports = [
./monado.nix
];
}

View file

@ -0,0 +1,22 @@
{ 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;
};
};
}

View file

@ -4,6 +4,7 @@
imports = [
../common.nix
./apps
./configs
./editors
./desktop
./shell

View file

@ -15,6 +15,7 @@ in
services.monado = {
enable = true;
defaultRuntime = true;
forceDefaultRuntime = true;
};
systemd.user.services.monado.environment = {
@ -26,16 +27,6 @@ in
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;
};
};
}