Guest repo flake

sometimes I contribute to other people’s projects and I want to flake it, but only for myself.

Locally, I can create a flake with my dev shell, but then I have to track it in git, which is undesired as I want to commit only changes that are related to my fix. I could remove it before opening PR, but then I will have always some inconsistency that complicates the flow.

Then the other approach I tried is to create a “wrapper repo” which holds the flake and the original repo as a submodule. It works, but I would rather avoid git submodules.

Do you have experience with it? How do you usually track your flake files?

I found answers to the same query in Reddit thread with the most upvoted reply pointing to Nix Wiki.