Home manager wants to build binutils and xgcc

Hey there,
recently Home Manager started wanting to build a number of packages most notably binutils and xgcc:

$ home-manager -v build --flake ~/nixos-config/#desktop
building '/nix/store/xhvnc6a2b7nz156mv9h8dclw5i7pqn4s-binutils-2.43.1.drv'...
building '/nix/store/hnnqpznc9mdwn0h8r0rdp37qrdbn5ga1-xgcc-14-20241116.drv'...
building '/nix/store/n4p9jqkdkshrrwbg6kf0lnzx1p1n14nm-xgcc-14-20241116.drv'...
building '/nix/store/5i23rhhv6335sf7475jf58m7pq4k754n-binutils-wrapper-2.43.1.drv'...

Has this happened to anyone else?

my flake: Atman / NixOS Config ยท GitLab

I reverted to my old flake.lock file ran:

sudo nixos-rebuild switch --flake ~/nixos-config#desktop

and

home-manager switch --flake ~/nixos-config/#desktop

then updated the flake again:

nix flake update --flake ~/nixos-config

and ran rebuild home-manager before nixos:

home-manager switch --flake ~/nixos-config/#desktop
sudo nixos-rebuild switch --flake ~/nixos-config#desktop

This way I only needed to build git during the home-manager switch, can anybody explain to me why this works? :sweat_smile: