I believe this is the issue you are facing. https://github.com/NixOS/nixpkgs/issues/353059 Unfortunately, right now your workaround to use virtualisation.docker.enableNvidia = true;
seems to be the only solution and we should wait for a fix in docker upstream.