From edd62911763af859d43edc4a3d0de932377493f0 Mon Sep 17 00:00:00 2001 From: mjallen18 Date: Tue, 30 Dec 2025 09:48:36 -0600 Subject: [PATCH] sunshine apps --- modules/nixos/services/sunshine/default.nix | 25 ++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/modules/nixos/services/sunshine/default.nix b/modules/nixos/services/sunshine/default.nix index 56ac246..9e6b756 100644 --- a/modules/nixos/services/sunshine/default.nix +++ b/modules/nixos/services/sunshine/default.nix @@ -21,7 +21,30 @@ let autoStart = true; capSysAdmin = true; applications.apps = with pkgs; [ - steam + { + name = "steam"; + prep-cmd = [ + { + undo = "${pkgs.util-linux}/bin/setsid ${pkgs.steam}/bin/steam steam://close/bigpicture"; + } + ]; + detached-cmd = [ + "${pkgs.util-linux}/bin/setsid ${pkgs.steam}/bin/steam steam://open/bigpicture" + ]; + exclude-global-prep-cmd = "false"; + auto-detach = "true"; + } + { + name = "1440p Desktop"; + prep-cmd = [ + { + do = "''${pkgs.kdePackages.libkscreen}/bin/kscreen-doctor output.DP-4.mode.2560x1440@60"; + undo = "''${pkgs.kdePackages.libkscreen}/bin/kscreen-doctor output.DP-4.mode.3440x1440@60"; + } + ]; + exclude-global-prep-cmd = "false"; + auto-detach = "true"; + } ]; settings = { port = 47989;