Nixgl: https://github.com/nix-community/nixGL

Also, it seems like this requires the latest "stateversion", since this is a new feature.

This is pretty big, because it makes it easy to use applications that use the GPU from nixpkgs on non Nixos systems.

you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 1 year ago (4 children)

I thought this was going to automatically wrap all my packages in NixGL. But this is about the way more convenient NixGL set-up that happened to home-manager last year, yes?

  • source
  • hideshow 4 child comments
  • [–] [S] 2 points 1 year ago (3 children)

    Yeah, but I only discovered it now.

    Looking on github though, it looks like people combine builtins.map with this to wrap a bunch of packages at once though.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 1 year ago (2 children)

    I'm also mapping the wrapper over a list and combining it with unmodified packages.

    I suppose that is the Nix-y way, but I can't help but feel like it's a bit...manual? I always wondered if I should just wrap all of my home-manager packages that way!

  • source
  • parent
  • hideshow 2 child comments
  • [–] [S] 2 points 2 months ago* (last edited 2 months ago) (1 child)

    Huh. The page was updated, reviewing it a year later. It does look like there is an option to automatically give GPU to all Nix/home-manager programs now. If you set targets.genericLinux.enable to true, then it should work.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 2 months ago

    Thanks for the heads up!

    The new hostwide flag is very convenient. It probably won't work for me because I'm sticking to stock SteamOS for now, and it's very immutable. But I'm giving it a try asap!

  • source
  • parent