This is why Nix (with flakes), in a git repository, will refuse to use a lockfile that isn't being tracked by git.