From 12d32846a2b3abcec05b9372a9a6dcd79f1183be Mon Sep 17 00:00:00 2001 From: Andreas Schaafsma Date: Wed, 13 Nov 2024 02:32:57 +0100 Subject: [PATCH] attempt gamescope fix --- .../drivebystation-nix/default.nix | 41 ++++++++++++++++++- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/systems/x86_64-linux/drivebystation-nix/default.nix b/systems/x86_64-linux/drivebystation-nix/default.nix index 2d140a5..91cf950 100644 --- a/systems/x86_64-linux/drivebystation-nix/default.nix +++ b/systems/x86_64-linux/drivebystation-nix/default.nix @@ -55,12 +55,49 @@ in ]; }; # lib.my-namespace.home.stream-tools.enable = true; + programs.gamescope.enable = true; programs.steam = { enable = true; remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers - gamescopeSession.enable = true; + + gamescopeSession = { + enable = true; + env = { + WLR_RENDERER = "vulkan"; + # DXVK_HDR = "1"; + ENABLE_GAMESCOPE_WSI = "1"; + WINE_FULLSCREEN_FSR = "1"; + # Games allegedly prefer X11 + # SDL_VIDEODRIVER = "x11"; + }; + args = [ + # "--xwayland-count 1" + "--expose-wayland" + + "-e" # Enable steam integration + "--steam" + + # "--adaptive-sync" + # "--hdr-enabled" + # "--hdr-itm-enable" + + # External monitor + # "--prefer-output DP-3" + # "--output-width 1920" + # "--output-height 1080" + # "-r 172" + + # Laptop display + # "--prefer-output eDP-1" + # "--output-width 2560" + # "--output-height 1600" + # "-r 120" + + "--prefer-vk-device 10de:1b81" # lspci -nn | grep VGA + ]; + }; }; # Open ports in the firewall. @@ -126,4 +163,4 @@ in systemd.targets.hibernate.enable = false; systemd.targets.hybrid-sleep.enable = false; }; - } +} \ No newline at end of file