Lutris: Difference between revisions

imported>Quasigod-io
This adds an explanation of how to add dependencies to Lutris, similar to what is available on the Steam page
Added Using Esync
 
(7 intermediate revisions by 6 users not shown)
Line 19: Line 19:
   environment.systemPackages = with pkgs; [
   environment.systemPackages = with pkgs; [
     (lutris.override {
     (lutris.override {
      withPrimus = true;
       extraPkgs = pkgs: [
       extraPkgs = pkgs: [
         # List package dependencies here
         # List package dependencies here
Line 30: Line 29:
=== Icons does not appear ===
=== Icons does not appear ===
You have to install a compatible icon theme. For example, you can install the <code>adwaita-icon-theme</code> available as <code>gnome3.adwaita-icon-theme</code> in Nixpkgs.
You have to install a compatible icon theme. For example, you can install the <code>adwaita-icon-theme</code> available as <code>gnome3.adwaita-icon-theme</code> in Nixpkgs.
=== Vulkan not found on startup ===
This warning may be cosmetic for some people. See this open [https://github.com/NixOS/nixpkgs/issues/69037#issuecomment-547899845 issue]


=== Epic Game Store ===
=== Epic Game Store ===
If you're running a 64bit environment you need to ensure that you enable 32bit support in your <code>configuration.nix</code>:
If you're running a 64bit environment you need to ensure that you enable 32bit support in your <code>configuration.nix</code>:
<code>
<code>
hardware.opengl.driSupport32Bit = true
hardware.graphics.enable32Bit = true
</code>
</code>
=== Incompatible Lutris libraries ===
When installing some games, you may see a message similar to:
<code>mktemp: $USER/.local/share/lutris/runtime/steam/amd64/lib/x86_64-linux-gnu/libattr.so.1: version `ATTR_1.3' not found (required by mktemp)</code>
This happens because lutris attempts to use it's own runtime which has incompatible libraries. To disable these potentially conflicting libraries: <code> More (three horizontal lines) > Preferences > Global Options > Disable Lutris Runtime</code>. Then attempt to install the game or application again.
=== Using Esync ===
The Lutris documentation shows [https://github.com/lutris/docs/blob/master/HowToEsync.md how to make your system esync compatible]. These steps can be achieved on NixOS with the config below.<syntaxhighlight lang="nixos">
{ config, pkgs, lib, ... }:
{
  systemd.extraConfig = "DefaultLimitNOFILE=524288";
  security.pam.loginLimits = [{
    domain = "yourusername";
    type = "hard";
    item = "nofile";
    value = "524288";
  }];
}
</syntaxhighlight>


[[Category:Applications]]
[[Category:Applications]]
[[Category:Gaming]]