diff --git a/configuration.nix b/configuration.nix index 5bd95fc..98b406a 100644 --- a/configuration.nix +++ b/configuration.nix @@ -218,6 +218,39 @@ policy = ["magic"]; }; }; + + programs.nix-ld.enable = true; + + # "minimum" amount of libraries needed for most games to run without steam-run + programs.nix-ld.libraries = with pkgs; [ + # common requirement for several games + stdenv.cc.cc.lib + + # from https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/games/steam/fhsenv.nix#L72-L79 + xorg.libXcomposite + xorg.libXtst + xorg.libXrandr + xorg.libXext + xorg.libX11 + xorg.libXfixes + libGL + libva + + # from https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/games/steam/fhsenv.nix#L124-L136 + fontconfig + freetype + xorg.libXt + xorg.libXmu + libogg + libvorbis + SDL + SDL2_image + glew110 + libdrm + libidn + tbb + zlib + ]; # Open ports in the firewall. # networking.firewall.allowedUDPPorts = [ ... ]; # Or disable the firewall altogether.