sxmo: split bonsai out to own file
This commit is contained in:
parent
d763f3b912
commit
9cc72c09dc
13
hosts/modules/gui/sxmo/bonsai.nix
Normal file
13
hosts/modules/gui/sxmo/bonsai.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{ sxmoPath, sxmoEnvSetup, pkgs }:
|
||||||
|
{
|
||||||
|
description = "programmable input dispatcher";
|
||||||
|
path = sxmoPath;
|
||||||
|
script = ''
|
||||||
|
${sxmoEnvSetup}
|
||||||
|
${pkgs.coreutils}/bin/rm -f $XDG_RUNTIME_DIR/bonsai
|
||||||
|
exec ${pkgs.bonsai}/bin/bonsaid -t $XDG_CONFIG_HOME/sxmo/bonsai_tree.json
|
||||||
|
'';
|
||||||
|
serviceConfig.Type = "simple";
|
||||||
|
serviceConfig.Restart = "always";
|
||||||
|
serviceConfig.RestartSec = "5s";
|
||||||
|
}
|
|
@ -535,17 +535,8 @@ in
|
||||||
sxmo_wob = sxmoService "wob";
|
sxmo_wob = sxmoService "wob";
|
||||||
sxmo-x11-status = sxmoService "status_xsetroot";
|
sxmo-x11-status = sxmoService "status_xsetroot";
|
||||||
|
|
||||||
bonsaid = {
|
bonsaid = import ./bonsai.nix {
|
||||||
description = "programmable input dispatcher";
|
inherit sxmoPath sxmoEnvSetup pkgs;
|
||||||
path = sxmoPath;
|
|
||||||
script = ''
|
|
||||||
${sxmoEnvSetup}
|
|
||||||
${pkgs.coreutils}/bin/rm -f $XDG_RUNTIME_DIR/bonsai
|
|
||||||
exec ${pkgs.bonsai}/bin/bonsaid -t $XDG_CONFIG_HOME/sxmo/bonsai_tree.json
|
|
||||||
'';
|
|
||||||
serviceConfig.Type = "simple";
|
|
||||||
serviceConfig.Restart = "always";
|
|
||||||
serviceConfig.RestartSec = "5s";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user