Conversation

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

2
0
0

I have a 4TB drive that I'm willing to sacrifice for this disaster of an experiment

1
0
0

I NEED to set the Guinness world record for best Nix store

0
0
0

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)

1
0
0

I now have access to a much larger machine for this so wheee let's see how it goes...

1
0
0

[1/77/26688 built, 16/75/44328 copied (1744.8/809913.4 MiB), 577.4/223195.7 MiB DL]

2
0
0

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

0
0
0

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.

2
0
0

@xy i have made a rng in nix before based on the git commit sha so theoretically i could select a random set of packages and brute force the commit sha into giving me what i need

0
0
1

nixos-rebuild was so terrified it told me to set NIXOS_REBUILD_I_UNDERSTAND_THE_CONSEQUENCES_PLEASE_BREAK_MY_SYSTEM to 1 🤣

2
1
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

2
0
0

@xy I approve (having shipped code with "--i-know-what-i-am-doing-is-wrong" and "-i-meant-that" flags :-)

0
0
0

I finally installed all 71440 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...

2
1
1

@xy
Could you try and generate an (or even ) of the system with some free scanner?
This would surely show some limitations of these tools...

1
0
0

@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?

0
0
0

@xy How much storage space does 71+K of packages take?

1
0
0