This translates into 2 main benefits: - if you made the build run now, it will run in the future (reproducibility) - it reduces bloat, because you can generate an environment or OS image with only the software needed to run a specific program or service
My guess is that a big efficiency gain would come from the second point, because you don't waste CPU on code that you don't use.
Does this make sense? Has anyone explored this?
[0]: https://nixos.org [1]: https://en.wikipedia.org/wiki/Nix_(package_manager)
you don't waste CPU on code that you don't use
You don't waste _CPU_ on code you don't use EVER, Nix or not - that's what "not used" means!