Better performance with alt gamescope session

This commit is contained in:
Emmet
2025-03-16 17:27:01 -05:00
parent 5efd1662eb
commit 1fb21a0543
2 changed files with 53 additions and 3 deletions

View File

@@ -12,6 +12,22 @@ in {
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "steam" "steam-unwrapped" ]; nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "steam" "steam-unwrapped" ];
nixpkgs.config.packageOverrides = pkgs: {
steam = pkgs.steam.override {
extraPkgs = pkgs: with pkgs; [
xorg.libXcursor
xorg.libXi
xorg.libXinerama
xorg.libXScrnSaver
libpng
libpulseaudio
libvorbis
stdenv.cc.cc.lib
libkrb5
keyutils
];
};
};
hardware.opengl.driSupport32Bit = true; hardware.opengl.driSupport32Bit = true;
programs.steam.enable = true; programs.steam.enable = true;
environment.systemPackages = with pkgs; environment.systemPackages = with pkgs;
@@ -24,8 +40,43 @@ in {
]; ];
programs.gamemode.enable = true; programs.gamemode.enable = true;
programs.gamescope.enable = true; programs.gamescope.enable = true;
programs.gamescope.capSysNice = true; programs.gamescope.capSysNice = false;
programs.steam.gamescopeSession.enable = true; programs.steam.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 2"
"--expose-wayland"
"-e" # Enable steam integration
"--steam"
"--adaptive-sync"
"--hdr-enabled"
"--hdr-itm-enable"
# External monitor
"--prefer-output eDP-1"
"--output-width 1920"
"--output-height 1080"
# "-r 75"
# Laptop display
# "--prefer-output eDP-1"
# "--output-width 2560"
# "--output-height 1600"
# "-r 120"
"--prefer-vk-device 1002:1638" # lspci -nn | grep VGA
];
};
systemSettings.bluetooth.enable = true; systemSettings.bluetooth.enable = true;
hardware.bluetooth = { hardware.bluetooth = {
enable = true; enable = true;

View File

@@ -61,7 +61,6 @@ in
"hyprprofile Default" "hyprprofile Default"
"ydotoold" "ydotoold"
"GOMAXPROCS=1 syncthing --no-browser" "GOMAXPROCS=1 syncthing --no-browser"
"STEAM_FRAME_FORCE_CLOSE=1 steam -silent"
"protonmail-bridge --noninteractive" "protonmail-bridge --noninteractive"
"sleep 5 && libinput-gestures" "sleep 5 && libinput-gestures"
"obs-notification-mute-daemon" "obs-notification-mute-daemon"