Nix is broken after macOS upgrade

Upgrading macOS is known to break Nix. When this happens, just uninstall Nix and then install it again.

  1. Uninstall Nix
  2. Reboot your Mac
  3. Install Nix