Nix flakes /nix/store/***-source no such file or directory

just adding flake.nix file to git , i.e. git add flake.nix solved this for me.

Thank you all this thread was a great resource.