…we’ve been ignoring most of these questions on Discourse lately, that’s really a shame.
Seems like mx330 is a Pascal (cudaCapabilities = [ "6.0" ]) device. You’ll need hardware.nvidia.package = kernelPackages.nvidiaPackages.legacy_580 for that. It seems you also need an older kernel, one of
Today’s Nixpkgs has dropped support for old CUDAToolkit releases because they depend on gcc and clang versions that already had been end of life for years then. You can try just combining today’s nixos with the old nixpkgs (expect libc compatibility issues, can talk about those if they actually happen): nix repl -f "channel:nixos-25.05" --arg config '{ allowUnfree = true; cudaCapabilities = [ "6.0" ]; }'. You can also have a look at GitHub - nixos-cuda/cuda-legacy: Select CUDA package sets which have aged out of Nixpkgs. [maintainers=@ConnorBaker, @SomeoneSerge] · GitHub, but tbh I’ve no idea what state it’s in right now, better ask Connor