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

@ -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;
};
};
}