steam: add drivers to bwrap

This commit is contained in:
Luigi Sartor Piucco 2021-02-03 21:24:23 -03:00
parent cd29b6ff97
commit e358a6f4fd
2 changed files with 9 additions and 1 deletions

View file

@ -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 ];

View file

@ -139,6 +139,7 @@ in buildFHSUserEnv rec {
libcap
# dependencies for mesa drivers, needed inside pressure-vessel
mesa.drivers
expat
wayland
xlibs.libxcb