monado: Move to home module for home configs
This commit is contained in:
parent
f1fb5f4eba
commit
1a26cefc18
5 changed files with 33 additions and 10 deletions
7
modules/home/configs/default.nix
Normal file
7
modules/home/configs/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./monado.nix
|
||||
];
|
||||
}
|
22
modules/home/configs/monado.nix
Normal file
22
modules/home/configs/monado.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -4,6 +4,7 @@
|
|||
imports = [
|
||||
../common.nix
|
||||
./apps
|
||||
./configs
|
||||
./editors
|
||||
./desktop
|
||||
./shell
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue