A few years ago I tried installing (almost) every Arch package (https://unnamed.website/posts/installing-every-arch-package/) and surprisingly it was *only* 250 GB.
But what about doing this with NixOS by setting `environment.systemPackages = builtins.attrValues pkgs;`? Yeah I know this is a bad idea, but I'm curious exactly *how bad* it is
I have a 4TB drive that I'm willing to sacrifice for this disaster of an experiment
If anyone wants to try my truly horrendous idea:
let
getpkgs = builtins.map (x: if (builtins.tryEval x).success && (builtins.isAttrs x) then (if builtins.hasAttr "name" x then x else getpkgs <| builtins.attrValues x) else []);
in
{
boot.isContainer = true;
environment.systemPackages = builtins.attrValues pkgs |> getpkgs |> lib.lists.flatten;
}
You'll also need to increase Nix's max-call-depth to 100000. (My laptop doesn't have enough RAM or disk space so not sure yet if this code works)
I now have access to a much larger machine for this so wheee let's see how it goes...
[1/77/26688 built, 16/75/44328 copied (1744.8/809913.4 MiB), 577.4/223195.7 MiB DL]
Source code for this monstrosity now up at https://git.unnamed.website/everything.nix/tree/configuration.nix
Actually the entirely of NixOS is much larger than a 223GB download, it's just that my earlier version of the code didn't properly recursively traverse pkgs
Novice NixOS configs explicitly list the packages you want.
Enlightened NixOS configs start out including every package and you filter out the ones you don't want.
nixos-rebuild was so terrified it told me to set NIXOS_REBUILD_I_UNDERSTAND_THE_CONSEQUENCES_PLEASE_BREAK_MY_SYSTEM to 1 🤣
In fact it did break my system by changing my shell from fish to a go fish game but fortunately I can just roll back
@xy I approve (having shipped code with "--i-know-what-i-am-doing-is-wrong" and "-i-meant-that" flags :-)
Now writing some Lean code to query cache.nixos.org using https://reservoir.lean-lang.org/@bergmannjg/Curl
I finally installed all 71440 #NixOS packages in the official binary cache! https://unnamed.website/posts/installing-every-nixos-package/
I have no idea what to do next with this system...
@schmidt_fu Sure, so I tried running `sbomnix /nix/var/nix/profiles/system` (no idea if I'm doing that correctly) but it didn't finish after 30 minutes. But maybe that's expected since it's processing 71440 packages?
@apples_and_pears 640 GiB with btrfs compression, 1.22 TiB uncompressed.