From 83fcbefffc7419995412a9c2613f90c9288a460b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Fri, 24 Nov 2023 00:04:38 +0100 Subject: [PATCH] WIP: steam: Try to get gamescope to work? --- nixos-config/yui/games.nix | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/nixos-config/yui/games.nix b/nixos-config/yui/games.nix index d6e0f08d..f4eca5eb 100644 --- a/nixos-config/yui/games.nix +++ b/nixos-config/yui/games.nix @@ -13,7 +13,25 @@ # Appears to resolve issues with crackling audio under high load services.pipewire.lowLatency.enable = true; - programs.steam.enable = true; + programs.steam = { + enable = true; + # Allow gamescope to work in the steam fhs + 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 + ]; + }; + }; # Make steam controller work hardware.steam-hardware.enable = true;