Jump to content

Heroic Games Launcher: Difference between revisions

From Official NixOS Wiki
Klinger (talk | contribs)
Tags: Mobile edit Mobile web edit
Malix (talk | contribs)
m Optional Dependencies: separation of pkgs
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
Heroic has some optional dependencies, such as [https://github.com/ValveSoftware/gamescope Gamescope] and [[GameMode|GameMode,]] that are not included in the FHS environment wrapper.  If you want to use any of these, you need to override the Heroic derivation to pass extra packages.<syntaxhighlight lang="nix">
Heroic has some optional dependencies, such as [https://github.com/ValveSoftware/gamescope Gamescope] and [[GameMode|GameMode,]] that are not included in the FHS environment wrapper.  If you want to use any of these, you need to override the Heroic derivation to pass extra packages.<syntaxhighlight lang="nix">
(heroic.override {
(heroic.override {
   extraPkgs = pkgs: [
   extraPkgs = pkgs': with pkgs'; [
     pkgs.gamescope
     gamescope
    gamemode
   ];
   ];
})
})

Latest revision as of 15:44, 7 February 2026

Heroic Games Launcher is an open-source launcher for GOG, Epic Games Store, and Amazon Prime Games, for Linux, Windows, and macOS. On NixOS, it fills a similar role to Lutris for running native and Windows games, and is also wrapped in a FHS environment.

Platform Support

Heroic in nixpkgs is only supported on x86_64-linux. Upstream does not support 32-bit Linux. If you are on macOS, you should use the official builds from upstream, unless you are willing to take on maintaining the Heroic package in nixpkgs for nix-darwn. If you are using just Nix on any non-NixOS Linux distribution, you should use the official builds from upstream.

Optional Dependencies

Heroic has some optional dependencies, such as Gamescope and GameMode, that are not included in the FHS environment wrapper. If you want to use any of these, you need to override the Heroic derivation to pass extra packages.

(heroic.override {
  extraPkgs = pkgs': with pkgs'; [
    gamescope
    gamemode
  ];
})

For Gamescope and GameMode, you also need to enable these in your NixOS configuration.

programs.gamescope.enable = true;
programs.gamemode.enable = true;

See GameMode for additional setup information.