stuff
This commit is contained in:
parent
a026867c03
commit
d1d7dd9c01
22 changed files with 427 additions and 103 deletions
47
hosts/insomniac/cage.nix
Normal file
47
hosts/insomniac/cage.nix
Normal file
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
lib,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
spec = {
|
||||
entries = [
|
||||
{
|
||||
displayName = "RetroArch";
|
||||
program = "retroarch";
|
||||
}
|
||||
{
|
||||
displayName = "Steam";
|
||||
program = "steam";
|
||||
args = [
|
||||
"-tenfoot"
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
specFormat = pkgs.formats.json { };
|
||||
|
||||
launcher = pkgs.writeShellApplication {
|
||||
name = "launcher";
|
||||
runtimeInputs = [
|
||||
inputs.xenumenu.packages.${pkgs.system}.default
|
||||
];
|
||||
text = ''
|
||||
while true; do
|
||||
xenumenu --rowcols 3 --exit ${specFormat.generate "spec.json" spec}
|
||||
done
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
services.cage = {
|
||||
enable = true;
|
||||
program = lib.getExe launcher;
|
||||
user = "insomniac";
|
||||
environment = {
|
||||
WLR_LIBINPUT_NO_DEVICES = "1";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue