I have changed my NixOS’ configuration from channels to flake and I have the impression, that nixos-rebuild takes significantly more time, now. The delay might be in the range of two to six seconds or so.
Does anybody share my impression? If yes, what could be the reason?
Nix also downloads the global registry every once in a while, which adds more overhead, and I’m pretty sure flake inputs are refreshed on cache ttl lapses. There’s a bunch of unnecesary data shoveling when you use flakes.
Thanks for your replies. I am still thinking, the discussed overhead does not justify the delay on todays hardware. Probably there is some potential for optimizations.
I agree that flakes seem much slower. Who asked for pure eval, copying to store and other stuff? Base Nix works fine already and provides enough reproducibility and pureness, and flakes push it into madness.