claymorwan

joined 1 month ago

yea i think it may just not be possible yet, looking it up more i've seen people talking abt how a big con of flakes is that flake.nix is not parsed like regular nix files. I'm not sure why they made it work like that but it gets changed eventually cuz that's really too bad we can't do things as simple as imports

[–] claymorwan@lemmy.blahaj.zone 2 points 1 day ago (2 children)

I followed how u did it but it doesn't seem to work, i keep getting hit with this error:

error: expected a set but got a thunk at /home/claymorwan/.dotfiles/NixOS/flake.nix:4:3
 

I'm starting to have a lot of flake inputs in my flake.nix file, and it's starting to get really cluttered. I'm wondering if there's a way to separate my inputs into multiple files so it looks cleaner. I've tried to look it up but couldn't really find anything abt it

Edit: Well as it turns out it's not something possible yet, apparently the flake.nix file isn't parsed like regular nix files and doesn't support stuff like import

[–] claymorwan@lemmy.blahaj.zone 1 points 3 weeks ago

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

[–] claymorwan@lemmy.blahaj.zone 2 points 3 weeks ago (1 children)

returns this error

error: attribute 'multiPkgs' missing
        at /nix/store/j9lcrp816krraglnjk6r8iacl6jvww87-source/nixos/modules/home/packages.nix:24:19:
            23|     (lutris.overrideAttrs (_: prevAttrs: {
            24|       multiPkgs = prevAttrs.multiPkgs ++ [
              |                   ^
            25|         (pkgs.runCommand "steamrun-lib" { } ''

if i were to guess maybe cuz multiPkgs is defined in fhsenv.nix in not in default.nix, could be wring tho im pretty new to nix packaging

[–] claymorwan@lemmy.blahaj.zone 1 points 3 weeks ago

tried that too, didn't work either sadly

[–] claymorwan@lemmy.blahaj.zone 1 points 3 weeks ago (2 children)

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

[–] claymorwan@lemmy.blahaj.zone 1 points 3 weeks ago (2 children)

Do you have the Lutris runtime enabled?

Like so ?

If yes, then sadly it don't work

[–] claymorwan@lemmy.blahaj.zone 2 points 3 weeks ago (7 children)

I did notice lutris having its own FHS when upgrading, but aw man this looks pretty dam complicated, I'm like a week old to NixOS I have no idea how imma do this lmao, i did attempt the following

failed attemps

home.packages = with pkgs; [
 lutris.overrideAttrs (finalAttrs: previousAttrs: {
      multiPkgs = self ++ [(pkgs.runCommand "steamrun-lib" {}
  "mkdir $out; ln -s ${pkgs.steam-run.fhsenv}/usr/lib64 $out/lib")];
    })
];

and

home.packages = with pkgs; [
 lutris.override {
      buildFHSEnv = self.buildFHSEnv.override {
        multiPkgs = self ++ [(pkgs.runCommand "steamrun-lib" {}
  "mkdir $out; ln -s ${pkgs.steam-run.fhsenv}/usr/lib64 $out/lib")];
      };
    }
];
which obviously didn't work, so yea im kinda lost I'm also really surprised that lutris' FHS just does not have anything to run native linux game by default
 

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