The local_auto.nix file needed to be added to the git repo even though it is ignored, so it would be copied when evaluating the flake.
However, this causes the message that the repo is dirty when switching. We could workaround with a temporary commit but that's not ideal.
Maybe there's a better way via CLI arguments or env vars?