Files
dotfiles/config/modules/gaming/steam.nix
T
2026-06-23 09:12:21 +01:00

49 lines
1.3 KiB
Nix

{ den, modules, ... }:
{
modules.steam = {
nixos =
{ pkgs, ... }:
{
programs.gamescope = {
enable = true;
package = (
pkgs.gamescope.overrideAttrs {
enableWsi = true;
# Fixes some games being blurry under wayland backend
NIX_CFLAGS_COMPILE = [ "-fno-fast-math" ];
}
);
# Breaks steam launching gamescope
# capSysNice = true;
};
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
# Ensure gamescope is inside the steam "fhs"
package = pkgs.steam.override {
extraLibraries = pkgs: [ pkgs.libxcb ];
extraPkgs =
pkgs: with pkgs; [
attr
libxcursor
libxi
libxinerama
libxscrnsaver
libpng
libpulseaudio
libvorbis
stdenv.cc.cc.lib
libkrb5
keyutils
mangohud
# gamemode
lsof
];
};
};
};
};
}