Finally fixing my nix-based dev env on MacOS. I was getting error: tool 'git' not found when in a dev env.
error: tool 'git' not found
sudo xcode-select --reset sudo xcode-select --switch /Library/Developer/CommandLineTools
wound up fixing it