From e358a6f4fdc1425015103ec8462fb202d545ca01 Mon Sep 17 00:00:00 2001 From: Luigi Sartor Piucco Date: Wed, 3 Feb 2021 21:24:23 -0300 Subject: [PATCH] steam: add drivers to bwrap --- nixos/modules/programs/steam.nix | 9 ++++++++- pkgs/games/steam/fhsenv.nix | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/nixos/modules/programs/steam.nix b/nixos/modules/programs/steam.nix index 3c919c47a0c6..eecb9de43cce 100644 --- a/nixos/modules/programs/steam.nix +++ b/nixos/modules/programs/steam.nix @@ -4,6 +4,13 @@ with lib; let cfg = config.programs.steam; + + steam = pkgs.steam.override { + extraLibraries = pkgs: with config.hardware.opengl; + if pkgs.hostPlatform.is64bit + then [ package ] ++ extraPackages + else [ package32 ] ++ extraPackages32; + }; in { options.programs.steam.enable = mkEnableOption "steam"; @@ -18,7 +25,7 @@ in { hardware.steam-hardware.enable = true; - environment.systemPackages = [ pkgs.steam ]; + environment.systemPackages = [ steam ]; }; meta.maintainers = with maintainers; [ mkg20001 ]; diff --git a/pkgs/games/steam/fhsenv.nix b/pkgs/games/steam/fhsenv.nix index 04afd486c602..60f8e55ed211 100644 --- a/pkgs/games/steam/fhsenv.nix +++ b/pkgs/games/steam/fhsenv.nix @@ -139,6 +139,7 @@ in buildFHSUserEnv rec { libcap # dependencies for mesa drivers, needed inside pressure-vessel + mesa.drivers expat wayland xlibs.libxcb