Steam: Difference between revisions

imported>Appetrosyan
Clarify installation instructions
imported>Raindev
Simplify installation instructions: enabling the module is sufficient without the package
Line 4: Line 4:


== Install ==
== Install ==
Firstly, you should install Steam itself:
 
To install the Steam package and enable all the system options necessary to allow it to run:
 
{{file|/etc/configuration.nix|nix|<nowiki>
{{file|/etc/configuration.nix|nix|<nowiki>
{
programs.steam = {
   environment.systemPackages = with pkgs; [
   enable = true;
    # ...
  remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
    steam
   dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
    # ...
};
   ];
}
</nowiki>}}
</nowiki>}}
{{warning|The above step is insufficient, just adding <code>steam</code> to your package list is not going to work, since it won't enable all necessary system options. Please enable steam as shown below.}}
The following options should be enabled to allow steam to run.
<syntaxhighlight lang="nix">
  programs.steam = {
    enable = true;
    remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
    dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
  };
</syntaxhighlight>


{{note|Enabling steam installs several unfree packages. If you are using <code>allowUnfreePredicate</code> you will need to ensure that your configurations permit all of them.
{{note|Enabling steam installs several unfree packages. If you are using <code>allowUnfreePredicate</code> you will need to ensure that your configurations permit all of them.