Revert "fix/feat(sunshine.nix): update CUDA version and refactor gamescope arguments"
This reverts commit 3424fb4b9f
.
This commit is contained in:
parent
3424fb4b9f
commit
049174c54c
@ -30,24 +30,7 @@ let
|
|||||||
executable = true;
|
executable = true;
|
||||||
destination = "/bin/resolution.sh";
|
destination = "/bin/resolution.sh";
|
||||||
};
|
};
|
||||||
sunshinePkg = (pkgs.localPkgs.sunshine.override { cudaSupport = true; cudaPackages = pkgs.cudaPackages_12_4; boost = pkgs.boost186; });
|
sunshinePkg = (pkgs.localPkgs.sunshine.override { cudaSupport = true; cudaPackages = pkgs.cudaPackages_12_3; boost = pkgs.boost186; });
|
||||||
gamescopeArgs = [
|
|
||||||
"--immediate-flips"
|
|
||||||
"--rt"
|
|
||||||
"-C"
|
|
||||||
"3000"
|
|
||||||
"-f"
|
|
||||||
"--hdr-enabled"
|
|
||||||
"-e"
|
|
||||||
"-W"
|
|
||||||
"\${SUNSHINE_CLIENT_WIDTH}"
|
|
||||||
"-H"
|
|
||||||
"\${SUNSHINE_CLIENT_HEIGHT}"
|
|
||||||
"-r"
|
|
||||||
"\${SUNSHINE_CLIENT_FPS}"
|
|
||||||
];
|
|
||||||
|
|
||||||
gamescopeArgsStr = builtins.concatStringsSep " " gamescopeArgs;
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
boot.kernelModules = [ "uinput" ];
|
boot.kernelModules = [ "uinput" ];
|
||||||
@ -68,6 +51,7 @@ in
|
|||||||
|
|
||||||
programs.steam = {
|
programs.steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
gamescopeSession.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
security = {
|
security = {
|
||||||
@ -118,7 +102,7 @@ in
|
|||||||
apps = [
|
apps = [
|
||||||
{
|
{
|
||||||
name = "Steam";
|
name = "Steam";
|
||||||
cmd = ''${pkgs.bash}/bin/bash -c "${pkgs.gamescope}/bin/gamescope ${gamescopeArgsStr} -- ${pkgs.steam}/bin/steam"'';
|
cmd = ''${pkgs.bash}/bin/bash -c "${pkgs.gamescope}/bin/gamescope --immediate-flips --rt -C 3000 -f --hdr-enabled -e -W ''${SUNSHINE_CLIENT_WIDTH} -H ''${SUNSHINE_CLIENT_HEIGHT} -r ''${SUNSHINE_CLIENT_FPS} -- ${pkgs.steam}/bin/steam"'';
|
||||||
prep-cmd = [
|
prep-cmd = [
|
||||||
{
|
{
|
||||||
do = ''${pkgs.bash}/bin/bash -c "${resolutionScript}/bin/resolution.sh ''${SUNSHINE_CLIENT_WIDTH} ''${SUNSHINE_CLIENT_HEIGHT}" ''${SUNSHINE_CLIENT_FPS}"'';
|
do = ''${pkgs.bash}/bin/bash -c "${resolutionScript}/bin/resolution.sh ''${SUNSHINE_CLIENT_WIDTH} ''${SUNSHINE_CLIENT_HEIGHT}" ''${SUNSHINE_CLIENT_FPS}"'';
|
||||||
|
Loading…
Reference in New Issue
Block a user