From 1379578685984e0216c8fce588e727237d19a62b Mon Sep 17 00:00:00 2001 From: Natalie Marks Date: Mon, 29 Jan 2024 01:54:02 -0800 Subject: [PATCH] updated system config --- configuration.nix | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) 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.