Ha! yes. The buildFHSEnv function works by creating a separate namespace akin to Docker containers but without complete separation from the host system (I hint to this in my post). It then hosts the libraries in /nix/store into this namespace.
Nix / NixOS @programming.dev lavafroth @lemmy.dbzer0.com 2y ago Finally a half-decent CUDA solution on NixOS lavafroth.is-a.dev /post/cuda-on-nixos-without-sacrificing-ones-sanity/
Cheers!