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.

  • moonpiedumplings@programming.devOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    1 month ago

    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.

    • Scio@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 month 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!