1
0
Fork 0
This commit is contained in:
Lukas Wurzinger 2025-07-01 19:02:19 +02:00
parent a026867c03
commit d1d7dd9c01
No known key found for this signature in database
22 changed files with 427 additions and 103 deletions

47
hosts/insomniac/cage.nix Normal file
View 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";
};
};
}