Nami installs from nixpkgs without evaluating Nix namios.dev · 31 points · 0 com...
HN Best 200 @best
Nami installs from nixpkgs without evaluating Nix namios.dev · 31 points · 0 comments · HN thread
TL;DR nami is a package manager that installs packages from nixpkgs byte for byte without running the Nix evaluator on the user's machine. It ships a precomputed, ed25519-signed catalog per nixpkgs release that maps package names to store paths, then downloads from cache.nixos.org directly and installs into /nix/store. The post also lists the costs: a smaller config language, dependence on the catalog signer, and x86_64 Linux only for now.
- A nixpkgs release is evaluated once ahead of time into a signed index of store paths, versions, descriptions, licences, apps and build definitions, so install and search become lookups.
- Trust moves to the catalog signer, who decides what a name like firefox maps to; unsigned catalogs are accepted only with an explicit --unsigned flag.
- nami fetches from cache.nixos.org itself, checking narinfo signatures and archive hashes, and records paths in its database only after a full closure is unpacked.
- Packages stay in /nix/store so nixpkgs' hardcoded paths work on Ubuntu, Fedora, Arch and openSUSE; graphics come from a runtime linked at /run/opengl-driver.
- Uncached packages (unfree, or the user's own) are built by nami writing nixpkgs' stdenv variables and running its builder inside bubblewrap without network.
- In a benchmark against Nix 2.35.6, nami searched all packages in 11 ms versus 1.3 s and installed 33 MB versus 114 MB; installing three tools on a new machine took 4.3 s versus 8.4 s.
Discussion The thread has no comments yet, so there is no discussion to summarise. The submission has 31 points, which suggests modest interest from readers so far.