diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/gaming.nix | 59 |
1 files changed, 50 insertions, 9 deletions
diff --git a/config/gaming.nix b/config/gaming.nix index cdcc6ec..3f8c157 100644 --- a/config/gaming.nix +++ b/config/gaming.nix @@ -1,19 +1,60 @@ { config, lib, pkgs, ... }: let - my_steam = pkgs.steam.override { - # nativeOnly = true; - withJava = true; - extraPkgs = p: [ - pkgs.openldap - pkgs.xorg.xrandr - ]; + my_steam = self: super: { + steam = super.steam.override { + # nativeOnly = true; + withJava = true; + extraPkgs = p: with pkgs; + let xorgdeps = with xorg; [ + libX11 libXrender libXrandr libxcb libXmu libpthreadstubs libXext libXdmcp + libXxf86vm libXinerama libSM libXv libXaw libXi libXcursor libXcomposite + ]; + in [ + glib-networking + libxkbcommon + fluidsynth hidapi mesa libdrm + perl which p7zip gnused gnugrep psmisc opencl-headers + cups lcms2 mpg123 cairo unixODBC samba4 sane-backends openldap ocl-icd utillinux + fribidi + libsndfile libtheora libogg libvorbis libopus libGLU libpcap libpulseaudio + libao libusb libevdev udev libgcrypt libxml2 libusb libpng libmpeg2 libv4l + libjpeg libxkbcommon libass libcdio libjack2 libsamplerate libzip libmad libaio + libcap libtiff libva libgphoto2 libxslt libsndfile giflib zlib glib + alsaLib zziplib bash dbus keyutils zip cabextract freetype unzip coreutils + readline gcc SDL SDL2 curl graphite2 gtk2 gtk3 udev ncurses wayland libglvnd + vulkan-loader xdg_utils sqlite gnutls libbsd + openldap + xorg.xrandr + xorg.xinput + gnome3.gtk + zlib + dbus + freetype + glib + atk + cairo + gdk_pixbuf + pango + fontconfig + xorg.libxcb + libkrb5 + nss + qt4 + ] ++ xorgdeps; + }; }; in { + nixpkgs.overlays = [ my_steam ]; + nixpkgs.config.allowBroken = true; + + programs.steam.enable = true; + hardware.opengl.extraPackages32 = with pkgs.pkgsi686Linux; [ libva ]; + environment.systemPackages = with pkgs; [ wineWowPackages.staging - my_steam - my_steam.run + steam + steam.run obs-studio ]; } |