NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.18k stars 14.19k forks source link

tabby: support vulkan backend and consider defaulting to it #306157

Open LunNova opened 6 months ago

LunNova commented 6 months ago

Using tabby is complicated by needing a different configuration depending on the hardware and versions of kernel modules in use on the host machine.

tabby recently gained support for a vulkan backend which cares much less about having specific versions of nvidia or AMD kernel modules and supports both vendors with one build.

Making the vulkan backend the default once it's supported would be neat!

I tried it out with this modified tabby/default.nix and it seems to work but I made a mess of the cuda/rocm support in the process.

cc @ghthor

ghthor commented 5 months ago

Current untested patch, but including your changes that enabled Vulkan.

https://github.com/ghthor/nixpkgs/commit/cbb5a94754ba56b383d49fb44cd2af35610a88f8#diff-abdbe2b562428d2ed485d33ee478cf9e126faae74d5cc60b48284c7c254ddf33