by lima · 3y ago · 0 comments
It insists on copying the entire repository into the Nix store (which makes all of its content world-readable!). Even if your flake.nix is in a subdirectory of a monorepo, the entire monorepo will be copied into the store every time!
I tested this branch, and a flake-based shell launched in 3 seconds inside a large monorepo (vs 30 seconds before). I don't think it is possible to copy this repo in 3 seconds.
https://github.com/jetpack-io/devbox/blob/main/internal/impl...
You might have two dozen flakes in your system. You'll typically only have a single channel, if you use them.