nixos-config/common/gui/steam.nix
gwg313 7a82a29134
fix: add steam controller support
Signed-off-by: gwg313 <gwg313@pm.me>
2025-07-13 08:55:27 -04:00

56 lines
1 KiB
Nix

{
config,
lib,
pkgs,
...
}:
{
options = {
steam.enable = lib.mkEnableOption "Enables steam";
};
config = lib.mkIf config.steam.enable {
hardware.opengl.driSupport32Bit = true;
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
];
};
};
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
gamescopeSession = {
enable = true;
args = [
"-F fsr"
"-f"
];
};
};
environment.sessionVariables = {
# Proton GE flag
WINE_FULLSCREEN_FSR = "1";
};
environment.systemPackages = with pkgs; [
protonup
steam-devices-udev-rules
scanmem
];
};
}