List all dependencies for current generation

No that is almost certainly it. You have an environment variable set that includes that path. Nix will see that and consider it a GC root.