logoalt Hacker News

Diti01/21/20253 repliesview on HN

I think you can install 100 % of Nix packages at once if you forget to provide a package name to `nix-env -i` (please stop using `nix-env`). [1]

About 3 times more packages than Alpine. [2] RIP!

____

[1]: https://github.com/NixOS/nix/issues/308

[2]: https://repology.org/repositories/graphs


Replies

jchw01/21/2025

Although that is true, it'll presumably be hard to use them all since some of them will trample each other's symlinks.

It doesn't really make that much sense, but I've always wanted a sort-of hybrid lazy Nix store. Rebuilding my NixOS machines take a long time since I like to have my preferred software configured and installed at the system level mostly, but there's some stuff that isn't so essential that it needs to block the upgrade. So I've thought about a hybrid solution where the packages would get built in the background and you could have some kind of magic FUSE system to block while the derivations are built or pulled from Hydra.

If you wanted to, you could combine this with the idea of installing every Nixpkgs package. It might even sort of make sense, as long as you ditch the "also work on them in the background" part... although it makes the surface area of your system absurd.

show 4 replies
iqandjoke01/22/2025

Does it even work at all for the installation to be finished without error? Just curious.

a3w01/21/2025

You urge me to not install all of them?

But I might need that program later and not have internet. /s