feat: added openrgb and disable sunshine streaming for now

This commit is contained in:
uttarayan21
2025-02-03 02:49:43 +05:30
parent 2151398f4e
commit b13a7e8ae7
2 changed files with 27 additions and 3 deletions

View File

@@ -4,6 +4,7 @@
./sunshine.nix ./sunshine.nix
]; ];
services = { services = {
hardware.openrgb.enable = true;
tailscale = { tailscale = {
enable = true; enable = true;
}; };

View File

@@ -1,17 +1,40 @@
{...}: { {pkgs, ...}: {
systemd.user.services.sunshine.path = [
pkgs.gamemode
pkgs.steam
];
services.sunshine = { services.sunshine = {
enable = true; enable = false;
openFirewall = true; openFirewall = true;
capSysAdmin = true; capSysAdmin = true;
autoStart = true;
settings = {
# file_apps = "/home/servius/.config/sunshine/apps.json";
sunshine_name = "Ryu";
};
applications = { applications = {
# env = {PATH = "/run/current-system/sw/bin";};
apps = [ apps = [
{ {
name = "Steam Big Picture"; name = "Steam Big Picture";
icon = "steam"; icon = "steam";
cmd = "steam steam://open/gamepadui"; # detached = ["setsid steam steam://open/gamepadui"];
detached = ["${pkgs.util-linux}/bin/setsid ${pkgs.steam}/bin/steam steam://open/gamepadui"];
exclude-global-prep-cmd = "false"; exclude-global-prep-cmd = "false";
auto-detach = "true"; auto-detach = "true";
} }
{
name = "Baldur's Gate 3";
image-path = "/home/servius/.config/sunshine/covers/igdb_119171.png";
auto-detach = "true";
exclude-global-prep-cmd = "false";
prep-cmd = [];
# detached = ["setsid steam steam://rungameid/1086940"];
detached = ["${pkgs.util-linux}/bin/setsid ${pkgs.steam}/bin/steam steam://rungameid/1086940"];
wait-all = true;
exit-timeout = 5;
}
]; ];
}; };
}; };