add: gamescope steam and fonts

This commit is contained in:
elwrcl committed 2026-04-16 11:12:08 +03:00
1 parent 46aa740ef3
commit c3237a9f3b
5 files changed
+119 -10

No files matched your search

+45 -4
View File
@@ -1,11 +1,33 @@
{ pkgs, ... }:
{
config,
pkgs,
...
}:
{
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
extest.enable = true;
protontricks.enable = true;
extraCompatPackages = with pkgs; [
proton-ge-bin
];
gamescopeSession = {
enable = true;
env = {
STEAM_ALREADY_GAMESCOPED = "1";
SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS = "0";
WINE_MOUSE_WARP_OVERRIDE = "force";
};
args = [
"--fullscreen"
"--force-grab-cursor"
];
};
package = pkgs.steam.override {
extraEnv = {
STEAM_USE_PORTAL = "1";
@@ -47,11 +69,30 @@
pkgsi686Linux.libpulseaudio
];
};
gamescopeSession.enable = true;
};
programs.gamescope = {
enable = true;
capSysNice = true;
};
programs.bash.enable = true;
hardware.graphics.enable = true;
environment.systemPackages = with pkgs; [
protontricks
hardware.steam-hardware.enable = true;
environment.systemPackages = [
(pkgs.lib.hiPrio (
pkgs.writeShellScriptBin "steam" ''
REAL_STEAM="${config.programs.steam.package}/bin/steam"
if [ -n "$STEAM_ALREADY_GAMESCOPED" ] || [ -n "$GAMESCOPE_WAYLAND_DISPLAY" ]; then
exec "$REAL_STEAM" "$@"
fi
if [ "$STEAM_USE_GAMESCOPE" = "1" ] && command -v steam-gamescope >/dev/null 2>&1; then
exec steam-gamescope "$@"
fi
exec "$REAL_STEAM" "$@"
''
))
];
}