| ... | ... | @@ -218,6 +218,39 @@ |
| 218 | 218 | policy = ["magic"]; |
| 219 | 219 | }; |
| 220 | 220 | }; |
| 221 | |
| 222 | programs.nix-ld.enable = true; |
| 223 | |
| 224 | # "minimum" amount of libraries needed for most games to run without steam-run |
| 225 | programs.nix-ld.libraries = with pkgs; [ |
| 226 | # common requirement for several games |
| 227 | stdenv.cc.cc.lib |
| 228 | |
| 229 | # from https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/games/steam/fhsenv.nix#L72-L79 |
| 230 | xorg.libXcomposite |
| 231 | xorg.libXtst |
| 232 | xorg.libXrandr |
| 233 | xorg.libXext |
| 234 | xorg.libX11 |
| 235 | xorg.libXfixes |
| 236 | libGL |
| 237 | libva |
| 238 | |
| 239 | # from https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/games/steam/fhsenv.nix#L124-L136 |
| 240 | fontconfig |
| 241 | freetype |
| 242 | xorg.libXt |
| 243 | xorg.libXmu |
| 244 | libogg |
| 245 | libvorbis |
| 246 | SDL |
| 247 | SDL2_image |
| 248 | glew110 |
| 249 | libdrm |
| 250 | libidn |
| 251 | tbb |
| 252 | zlib |
| 253 | ]; |
| 221 | 254 | # Open ports in the firewall. |
| 222 | 255 | # networking.firewall.allowedUDPPorts = [ ... ]; |
| 223 | 256 | # Or disable the firewall altogether. |