I’m guessing that cudaSupport is a package attribute, but I can’t tell from your Nix expression what package this is for. Maybe you haven’t included the relevant part of the expression, or maybe you’re doing something I don’t understand yet. Anyway…
To learn about configurable package attributes, I usually start by searching on the NixOS search page. When I find the package, I…
Click on the “homepage” link, hoping that the upstream developer knows about Nix/NixOS and tells us what we need to know. Often not, so next I…
Click on the “source” link, which takes you to the nix expression in Nixpkgs. Usually I can figure out what it’s for there. Not the most elegant approach.
You can find most NixOS configuration options by searching on the same NixOS search page, but click on the “Options” tab instead.
config.foo options are independent from package arguments, but oftentimes package arguments set them as default values… which can make things a little confusing