GPU Detection Issue: Canva Affinity not detecting Nvidia on NixOS

Hi everyone,

I’m having trouble getting Affinity via Wine to detect my GPU on NixOS. I’m using an Nvidia GTX 1050. On other distros like CachyOS, it works fine, but on NixOS, the app just won’t see the hardware acceleration.

What I’ve tried:

1. Linux-Affinity-Installer ( GitHub - ryzendew/Linux-Affinity-Installer: A repository that helps users get affinity software working on GNU/Linux 🐧 · GitHub ): Complete failure, wouldn’t even install properly due to NixOS’s read-only file system.

2. Affinity-nix ( GitHub - mrshmllow/affinity-nix: Affinity v3 & v2 packaged with Nix! · GitHub ): The app opens! But it doesn’t detect the Nvidia GPU. I tried running nvidia-offload affinity-v3, but still no luck.

Does anyone have a working Nix expression or a specific wrapper configuration to make Affinity see the Nvidia libs? Is there a specific LD\_LIBRARY\_PATH or Wine prefix trick I’m missing for NixOS?

Thanks in advance for the help!