From 5034746b5507c2130c6815df55877681395a0e45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Sat, 6 May 2023 17:25:06 -0300 Subject: [PATCH] steam: fix bug in steam beta --- overlays/default.nix | 3 --- system/steam.nix | 24 ++++++++++++++++++++++-- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/overlays/default.nix b/overlays/default.nix index 9f2b4bb..2c584e6 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -65,9 +65,6 @@ patches = old.patches ++ [ ../patches/sway/fix-hide_cursor-clearing-focus.patch ]; }); - steam = prev.unstable.steam.override { - extraPkgs = pkgs: with pkgs; [ capitaine-cursors bibata-cursors mangohud ]; - }; qutebrowser = prev.qutebrowser.overrideAttrs (old: { src = prev.fetchFromGitHub { diff --git a/system/steam.nix b/system/steam.nix index 3abd976..b10f2ca 100644 --- a/system/steam.nix +++ b/system/steam.nix @@ -1,6 +1,26 @@ -{ config, pkgs, inputs, ... }: { +{ config, pkgs, inputs, ... }: +let + upkgs = pkgs.unstable; +in +{ programs.steam.enable = true; - environment.systemPackages = with pkgs; [ + programs.steam.package = upkgs.steam.override { + extraLibraries = pkgs: with config.hardware.opengl; + if pkgs.hostPlatform.is64bit + then [ package ] ++ extraPackages + else [ package32 ] ++ extraPackages32; + + extraPkgs = pkgs: with pkgs; [ + capitaine-cursors + bibata-cursors + mangohud + xdg-user-dirs + ]; + extraProfile = '' + export GSETTINGS_SCHEMA_DIR="${upkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${upkgs.gsettings-desktop-schemas.name}/glib-2.0/schemas/" + ''; + }; + environment.systemPackages = with upkgs; [ protontricks ]; }