How big is that folder? It’ll copy the whole thing including .git and any untracked files.
You should not use path:. If it’s a git repo, you’re copying bits that aren’t used; if it’s not a git repo… let nix figure that out instead.
I meant you should specify no protocol and let nix infer it automatically. But yeah git+file:// is fine in this case, since that’s what nix will end up using if the flake is a git repo.
Hmm… I suspect that Mac prefers path:/ to git+profile for default protocol while Linux does the opposite. I frequently omit the protocol part, but on Linux it’s been ok.
There shouldn’t be any preference by the OS. Though git: flakes will only copy files known to git while path: flakes will copy everything in the folder, recursively.