From d86ae0e70335f8f8687591d6508d41029665a039 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sat, 11 Mar 2023 16:22:18 +0100 Subject: [PATCH] improve steam --- profiles/desktop/steam.nix | 48 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/profiles/desktop/steam.nix b/profiles/desktop/steam.nix index 28af0dc..144da09 100644 --- a/profiles/desktop/steam.nix +++ b/profiles/desktop/steam.nix @@ -12,18 +12,62 @@ #programs.java.enable = true; nixpkgs.config.packageOverrides = pkgs: { + # TODO: mesa, see https://sourcegraph.com/github.com/corngood/nixos-mesa-git/-/blob/configuration.nix steam = pkgs.steam.override { withPrimus = config.hardware.nvidia.modesetting.enable; - #withJava = config.programs.java.enable; + withJava = config.programs.java.enable; + #nativeOnly = true; + #newStdcpp = true; + #extraProfile = "export SDL_VIDEODRIVER=x11"; extraPkgs = pkgs: with pkgs; [ + config.hardware.opengl.package + nettools # some scripts expect 'hostname' + glxinfo # for debugging + + pipewire + libgdiplus - ]; + libpng + libpulseaudio + libvorbis + libbsd + gnutls + + zlib + mono + cairo + pango + cabextract + + lsb-release + fontconfig + gdk-pixbuf + gtk3 + gtk3-x11 + + xorg.libXcursor + xorg.libXi + xorg.libXinerama + xorg.libXScrnSaver + xorg.libxcb + + stdenv.cc.cc.lib + #libkrb5 + #keyutils + ]; }; }; + #services.joycond.enable = true; + + hardware.opengl.enable = true; + hardware.opengl.driSupport32Bit = true; + hardware.opengl.extraPackages32 = with pkgs.pkgsi686Linux; [ libva ]; + environment.systemPackages = with pkgs; [ steam-tui steamcmd + protontricks ]; }