stuff
This commit is contained in:
parent
a026867c03
commit
d1d7dd9c01
22 changed files with 427 additions and 103 deletions
|
@ -1,6 +1,8 @@
|
|||
{
|
||||
profiles = {
|
||||
desktop.enable = true;
|
||||
dynamic.enable = true;
|
||||
headful.enable = true;
|
||||
emulation.enable = true;
|
||||
gaming.enable = true;
|
||||
piracy.enable = true;
|
||||
|
|
8
hosts/insomniac/README.md
Normal file
8
hosts/insomniac/README.md
Normal 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
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";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = [
|
||||
pkgs.freetube
|
||||
];
|
||||
}
|
|
@ -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
11
hosts/insomniac/steam.nix
Normal 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
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue