38 lines
864 B
Nix
38 lines
864 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
config = {
|
|
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.xorg.libxcb ];
|
|
extraPkgs =
|
|
pkgs: with pkgs; [
|
|
attr
|
|
xorg.libXcursor
|
|
xorg.libXi
|
|
xorg.libXinerama
|
|
xorg.libXScrnSaver
|
|
libpng
|
|
libpulseaudio
|
|
libvorbis
|
|
stdenv.cc.cc.lib
|
|
libkrb5
|
|
keyutils
|
|
mangohud
|
|
gamemode
|
|
(gamescope.overrideAttrs { enableWsi = true; NIX_CFLAGS_COMPILE = ["-fno-fast-math"]; })
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|