From 503bc69948ca09d1ff70038e7819954b5d65dac0 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Thu, 26 Sep 2024 11:03:30 +0300 Subject: [PATCH] feat(roles/gaming): make gamescope work in steam-fhs --- roles/gaming/steam.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/roles/gaming/steam.nix b/roles/gaming/steam.nix index 60eca89..03f31e5 100644 --- a/roles/gaming/steam.nix +++ b/roles/gaming/steam.nix @@ -12,6 +12,29 @@ in { "steam" ]; + nixpkgs.config.packageOverrides = pkgs: { + steam = pkgs.steam.override { + extraPkgs = pkgs: + with pkgs; [ + # for gamescope + # https://github.com/NixOS/nixpkgs/issues/162562#issuecomment-1523177264 + xorg.libXcursor + xorg.libXi + xorg.libXinerama + xorg.libXScrnSaver + libpng + libpulseaudio + libvorbis + stdenv.cc.cc.lib + libkrb5 + keyutils + + # fallback fonts (e.g. for Don't Get Lost) + liberation_ttf + ]; + }; + }; + programs.steam = { enable = true; remotePlay.openFirewall = false; -- 2.44.1