Flake.nix or shell.nix for CUDA programming

Does anyone have a flake or a shell.nix to enable writing, compiling and executing CUDA kernels in C or C++?

(Or, better still, for doing it in Rust.)