I’ve been trying to run native linux games with lutris but can’t get it to work. As far as ik, i can either use steam-app in my termianl, which works, or I can use nix-ld which i did setup and also works when running the game’s executable from the terminal
I’ve setup nix-ld like so:
programs.nix-ld = {
enable = true;
libraries = [(pkgs.runCommand "steamrun-lib" {}
"mkdir $out; ln -s ${pkgs.steam-run.fhsenv}/usr/lib64 $out/lib")];
};
But for some reasons, when running the game’s executable in lutris, it just fails instantly, and I’m kinda out of ideas, if anyone knows what to do that’d be real helpful please
Edit:
Ok well apparently it just solved itself ??? I realized i could install lutis using programs.lutris.enable = true; instead of just putting it in home.packages, and apparently it fixed the issue. Idk why or how but ig if u use home manager, insall lutris like so


How are you adding the game to lutris? Are you running it through nix-ld/steam-run inside lutris? Can you share an example of a game you’re trying to run?
Edit: I hadn’t run a native game through Lutris in a while so I grabbed a random one to make sure it hasn’t just suddenly stopped working. I downloaded a couple from GOG and each is working as expected, so this sounds like it’s most likely a configuration issue, not the Lutris package itself. Make sure you have “Disable Lutris runtime” checked off and “Prefer system libraries” checked on.
Nope im not running them inside lutris, just thought if i had nix-ld enabled it’d work but apparently not
I did check, “Disable Lutris runtime” is checked off and “Prefer system libraries” is checked on, still doesn’t work and dies with an exit code 134
Could you share the logs from Lutris?
Ok well i was abt to get the logs and just realized that the one game i choosed to try is literally the only one who doesn’t wanna work in lutris so far. I’ve tried a few more native linux games with lutris and they all work, ig lutris just hates this first game in particular, which oddly enoug works with steam-run.
I suppose if i add the libraries from steam-run to lutris’ fhs environment it’ll work maybe Alsothe lutris logs does’t say anythingi particular, just that the game closed too fast