Steam: Difference between revisions
imported>Fufexan m Add link to page explaining the steam build |
imported>Pmarreck No edit summary |
||
| Line 127: | Line 127: | ||
From this version of NixOS onwards, you should be able to play most games with Proton. | From this version of NixOS onwards, you should be able to play most games with Proton. | ||
=== GE-Proton (GloriousEggroll) === | |||
{{note|By default, Steam on NixOS won't see any manually-installed [https://github.com/GloriousEggroll/proton-ge-custom Proton-GE] versions. In order for Steam to be able to find these, you need to have the environment variable <code>STEAM_EXTRA_COMPAT_TOOLS_PATHS</code> set in your login session.}} | |||
Here is an example <code>configuration.nix</code> excerpt that would provide that, using the (mostly) standard location (this one happens to also provide environment variables that help things conform to the [https://wiki.archlinux.org/title/XDG_Base_Directory XDG Base Directory Specification]): | |||
<syntaxhighlight lang=nix> | |||
environment.sessionVariables = rec { | |||
XDG_CACHE_HOME = "\${HOME}/.cache"; | |||
XDG_CONFIG_HOME = "\${HOME}/.config"; | |||
XDG_BIN_HOME = "\${HOME}/.local/bin"; | |||
XDG_DATA_HOME = "\${HOME}/.local/share"; | |||
# Steam needs this to find Proton-GE | |||
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "\${HOME}/.steam/root/compatibilitytools.d"; | |||
# note: this doesn't replace PATH, it just adds this to it | |||
PATH = [ | |||
"\${XDG_BIN_HOME}" | |||
]; | |||
}; | |||
</syntaxhighlight> | |||
{{note|As of 8/2022, the [https://search.nixos.org/packages?query=protonup protonup] auto-updater in nixpkgs is currently broken due to a naming convention change; see discussion [https://github.com/AUNaseef/protonup/issues/25 here] which suggests using a fixed fork (which is not yet part of nixpkgs) until it is patched or a PR is accepted. (Or you can simply just continue to manually install new versions.)}} | |||
== See also == | == See also == | ||
https://nixos.wiki/wiki/Explaining_the_current_Steam_Package_build | https://nixos.wiki/wiki/Explaining_the_current_Steam_Package_build | ||