A lot of building from scratch on nixos-rebuild switch

Been away for a while, but thank god, I am back!

One thing I am noticing while rebuilding my servers is that they take a whole longer than before to nixos-rebuild switch. I don’t remember it building that many packages from scratch.

Has something changed? I’d prefer using the prebuilt ones most of the time…

Even a very basic nix-shell -p nix-tree involves some heavy building…

Need more information than that to help you! What’s your configuration? Are you using channels or flakes or some other pinning solution? What modules/overlays are you pulling in?

I am using flakes with no overlay that I have personally written…

Some very basic stuff… Today, I simply added pkgs.ghostty.terminfo to my systemPackages and it’s been building stuff for 10 minutes and counting on a powerful 32 cores desktop.

Can you share your top-level flake?

2 Likes