Steam: Difference between revisions

imported>Davidak
Add workaround for "Steam is not updated"
imported>K900
GE-Proton (GloriousEggroll): Remove extremely misleading environment variable config
Line 140: Line 140:
=== GE-Proton (GloriousEggroll) ===
=== 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.}}
{{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, for example:
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>
<syntaxhighlight lang=nix>
    environment.sessionVariables = rec {
environment.variables.STEAM_EXTRA_COMPAT_TOOLS_PATHS = "~/.steam/root/compatibilitytools.d";
      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>
</syntaxhighlight>
}}


{{note|As of 8/2022, the [https://search.nixos.org/packages?query&#61;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.)}}
{{note|As of 8/2022, the [https://search.nixos.org/packages?query&#61;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.)}}