Basically the title. I have Nixos running on a server that runs completely headless and while playing around today, I noticed that the rebuild takes longer than expected and apparently that’s because firefox gets compiled.
Now, I don’t have any GUI installed, and even if I had, I don’t see a reason to compile FF from source.
My packages are just Jellyfin, Samba, Gitea, Nextcloud, virt-manager. None of these should depend on FF.
Well, that was easy.
I had networkmanager enabled and apparently, that also pulls in a bunch of gnome packages. Why nix thought that suddenly FF needs to be built from source, is beyond me.
Hmm, that shouldn’t be the case could you open an issue on that?
Does firefox appear in your previous closure?
nix-store --query --tree /run/current-system/ | grep firefox
I solved it using nix-tree, see the other comment.