nix-config/modules/features/desktop/steam.nix
2026-04-20 18:49:25 -04:00

58 lines
1.2 KiB
Nix

{
...
}:
{
config.dendritic.features.steam = {
nixosModules = [
(
{ config, pkgs, ... }:
{
hardware.graphics.enable32Bit = true;
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
gamescopeSession = {
enable = true;
args = [
"-F fsr"
"-f"
];
};
package = pkgs.steam.override {
extraPkgs =
pkgs: with pkgs; [
xorg.libXcursor
xorg.libXi
xorg.libXinerama
xorg.libXScrnSaver
libpng
libpulseaudio
libvorbis
stdenv.cc.cc.lib
libkrb5
keyutils
];
};
};
environment.sessionVariables = {
# Proton GE flag for FSR
WINE_FULLSCREEN_FSR = "1";
};
environment.systemPackages = with pkgs; [
protonup-ng
steam-devices-udev-rules
scanmem
mangohud
];
}
)
];
};
}