Cargo Collision on Mac

This might be more of a home-manager issue but hopefully someone has some guidance.

I have had rustup in my home.nix for a while and just ran a home-manager switch and am now getting a collision. I’m not sure where or how since I haven’t changed anything in my config for a while.

I am now getting this error even if I remove rustup. Also cargo or rustc are not anywhere in my config so I’m not sure how or where the collision is occurring.

home-manager switch
error: builder for '/nix/store/mlk2zncmxablpb4r5vcbr3ds4ld5m8bb-home-manager-path.drv' failed with exit code 25;
       last 2 log lines:
       > install: skipping file '/dev/fd/63', as it was replaced while being copied
       > error: collision between `/nix/store/8n1fnihj1lxgwj2gmk54nwshv37d67a4-rustup-1.27.1/bin/cargo' and `/nix/store/byfa9wirgg1gby158kayipmwkhih1szv-cargo-1.80.1/bin/cargo'
       For full logs, run 'nix log /nix/store/mlk2zncmxablpb4r5vcbr3ds4ld5m8bb-home-manager-path.drv'.
error: 1 dependencies of derivation '/nix/store/3w62r94spshwdnipkgywasvw7qggn8d0-home-manager-generation.drv' failed to build

Definitely remove it. Compilers and such tooling don’t go in your config.

Then you’ll have to check where cargo is coming from in your config. Are you using flakes or not?

Thanks. I think I’ve figured it out and it was just very dumb user error on my part.