From b13a7e8ae7e9a397e967b741575a105ecfafd66c Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Mon, 3 Feb 2025 02:49:43 +0530 Subject: [PATCH] feat: added openrgb and disable sunshine streaming for now --- nixos/ryu/services/default.nix | 1 + nixos/ryu/services/sunshine.nix | 29 ++++++++++++++++++++++++++--- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/nixos/ryu/services/default.nix b/nixos/ryu/services/default.nix index 0136ea3f..47600c68 100644 --- a/nixos/ryu/services/default.nix +++ b/nixos/ryu/services/default.nix @@ -4,6 +4,7 @@ ./sunshine.nix ]; services = { + hardware.openrgb.enable = true; tailscale = { enable = true; }; diff --git a/nixos/ryu/services/sunshine.nix b/nixos/ryu/services/sunshine.nix index c5fe4014..ed89e19b 100644 --- a/nixos/ryu/services/sunshine.nix +++ b/nixos/ryu/services/sunshine.nix @@ -1,17 +1,40 @@ -{...}: { +{pkgs, ...}: { + systemd.user.services.sunshine.path = [ + pkgs.gamemode + pkgs.steam + ]; + services.sunshine = { - enable = true; + enable = false; openFirewall = true; capSysAdmin = true; + autoStart = true; + settings = { + # file_apps = "/home/servius/.config/sunshine/apps.json"; + sunshine_name = "Ryu"; + }; applications = { + # env = {PATH = "/run/current-system/sw/bin";}; apps = [ { name = "Steam Big Picture"; 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"; 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; + } ]; }; };