Setting up private dependencies in nix as flake input allows it to cache it properly. Especially if they’re flakes themselves. However it took me a significant amount of time to get a working configuration for this. It’s possible to setup flakes with private inputs, Note the url format uses git+ssh