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;