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

View file

@ -0,0 +1,8 @@
shell script that loops a launcher
basically
while true; do
fuzzel with retroarch steam quit
if quit; then exit; fi
else run command (waiting)
done

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

View file

@ -1,6 +0,0 @@
{ pkgs, ... }:
{
environment.systemPackages = [
pkgs.freetube
];
}

View file

@ -1,9 +1,5 @@
{
profiles = {
desktop.enable = true;
emulation.enable = true;
gaming.enable = true;
piracy.enable = true;
productivity.enable = true;
};
}

11
hosts/insomniac/steam.nix Normal file
View file

@ -0,0 +1,11 @@
{
programs.steam = {
enable = true;
extest.enable = true;
protontricks.enable = true;
dedicatedServer.openFirewall = true;
remotePlay.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
gamescopeSession.enable = true; # TODO
};
}