From 6fe34cb3b919cf11956093e00b447acc309922af Mon Sep 17 00:00:00 2001 From: gwg313 Date: Thu, 11 Apr 2024 00:32:19 -0400 Subject: [PATCH] feat: add steam --- common/gui/steam.nix | 47 +++++++++++++++++++++++++++++++ hosts/grymforge/configuration.nix | 1 + 2 files changed, 48 insertions(+) create mode 100644 common/gui/steam.nix diff --git a/common/gui/steam.nix b/common/gui/steam.nix new file mode 100644 index 0000000..84aa9a3 --- /dev/null +++ b/common/gui/steam.nix @@ -0,0 +1,47 @@ +{ + config, + lib, + pkgs, + ... +}: { + 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 + ]; +} diff --git a/hosts/grymforge/configuration.nix b/hosts/grymforge/configuration.nix index 474aa2b..c7d4493 100644 --- a/hosts/grymforge/configuration.nix +++ b/hosts/grymforge/configuration.nix @@ -21,6 +21,7 @@ ../../common/nixos/ssh_client.nix ../../common/nixos/ssh_guard.nix ../../common/gui/hyprland.nix + ../../common/gui/steam.nix ../../common/gui/thunar.nix ../../common/style/stylix.nix ../../common/virtualization/podman.nix