Lutris: Difference between revisions
imported>Jonringer Mention lutris runtime issues. |
No edit summary |
||
| (7 intermediate revisions by 6 users not shown) | |||
| Line 1: | Line 1: | ||
Lutris is a video game preservation platform that you can use to play or emulate pretty much any game you want. | [https://lutris.net/ Lutris] is a video game preservation platform that you can use to play or emulate pretty much any game you want. | ||
== | == Installation == | ||
Install Lutris by adding the [https://search.nixos.org/packages?show=lutris&query=lutris Lutris package]<syntaxhighlight lang="nix"> | |||
environment.systemPackages = with pkgs; [ | |||
lutris | |||
]; | |||
</syntaxhighlight> | |||
=== | === Overriding extra libraries and packages === | ||
< | If any games are unable to run due to missing dependencies, they can be installed using the following methods.<syntaxhighlight lang="nix"> | ||
environment.systemPackages = with pkgs; [ | |||
(lutris.override { | |||
# List of additional system libraries | |||
extraLibraries = pkgs: [ ]; | |||
# List of additional system packages | |||
extraPkgs = pkgs: [ ]; | |||
}) | |||
]; | |||
</syntaxhighlight> | |||
</ | |||
== Known Issues == | == Known Issues == | ||
=== Icons | === Icons do 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. | ||
=== Epic Game Store === | === Epic Game Store === | ||
If you're running a 64bit environment you need to ensure that you enable 32bit support | If you're running a 64bit environment you need to ensure that you enable 32bit support:<syntaxhighlight lang="nix"> | ||
hardware.graphics.enable32Bit = true; | |||
hardware. | </syntaxhighlight> | ||
</ | |||
=== Incompatible Lutris libraries === | === Incompatible Lutris libraries === | ||
| Line 41: | Line 35: | ||
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. | 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]] | |||
Latest revision as of 16:17, 26 October 2025
Lutris is a video game preservation platform that you can use to play or emulate pretty much any game you want.
Installation
Install Lutris by adding the Lutris package
environment.systemPackages = with pkgs; [
lutris
];
Overriding extra libraries and packages
If any games are unable to run due to missing dependencies, they can be installed using the following methods.
environment.systemPackages = with pkgs; [
(lutris.override {
# List of additional system libraries
extraLibraries = pkgs: [ ];
# List of additional system packages
extraPkgs = pkgs: [ ];
})
];
Known Issues
Icons do not appear
You have to install a compatible icon theme. For example, you can install the adwaita-icon-theme available as gnome3.adwaita-icon-theme in Nixpkgs.
Epic Game Store
If you're running a 64bit environment you need to ensure that you enable 32bit support:
hardware.graphics.enable32Bit = true;
Incompatible Lutris libraries
When installing some games, you may see a message similar to:
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)
This happens because lutris attempts to use it's own runtime which has incompatible libraries. To disable these potentially conflicting libraries: More (three horizontal lines) > Preferences > Global Options > Disable Lutris Runtime. Then attempt to install the game or application again.
Using Esync
The Lutris documentation shows how to make your system esync compatible. These steps can be achieved on NixOS with the config below.
{ config, pkgs, lib, ... }:
{
systemd.extraConfig = "DefaultLimitNOFILE=524288";
security.pam.loginLimits = [{
domain = "yourusername";
type = "hard";
item = "nofile";
value = "524288";
}];
}