nixos-config/common/gui/steam.nix
gwg313 58f06d6729
lots of stuff
Signed-off-by: gwg313 <gwg313@pm.me>
2025-06-30 18:13:14 -04:00

55 lines
1,010 B
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
scanmem
];
};
}