From cbb415fd66016dfc6975e652cc6551bfc2e5a28b Mon Sep 17 00:00:00 2001 From: ooks-io Date: Thu, 15 Feb 2024 20:32:23 +1300 Subject: [PATCH] feat: steam gamescope packages --- system/profiles/gaming/default.nix | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/system/profiles/gaming/default.nix b/system/profiles/gaming/default.nix index 3e73fd5..e61654b 100644 --- a/system/profiles/gaming/default.nix +++ b/system/profiles/gaming/default.nix @@ -2,6 +2,23 @@ let cfg = config.systemProfile.gaming; + steamFix = pkgs.steam.override { + extraPkgs = pkgs: with pkgs; [ + xorg.libXcursor + xorg.libXi + xorg.libXinerama + xorg.libXScrnSaver + libpng + libpulseaudio + libvorbis + stdenv.cc.cc.lib + libkrb5 + keyutils + mangohud + winetricks + protontricks + ]; + }; in { @@ -12,7 +29,10 @@ in config = lib.mkIf cfg.enable { hardware.opengl.extraPackages = [ pkgs.gamescope ]; programs = { - steam.enable = true; + steam = { + enable = true; + package = steamFix; + }; gamescope = { enable = true; capSysNice = true;