In theory the zstd version should be an order of magnitude faster to decompress after downloading. In practice:
$ time xz -d ./nixexprs.tar.xz
xz -d ./nixexprs.tar.xz 3.67s user 0.44s system 431% cpu 0.953 total
$ time zstd -d ./nixexprs.tar.zst
./nixexprs.tar.zst : 279162880 bytes
zstd -d ./nixexprs.tar.zst 0.23s user 0.14s system 150% cpu 0.244 total
It is in fact an order of magnitude difference, but how much that 3sec or so matters to you depends on what you’re doing.
When I set up my system, I had to do a whole thing with nix-index and change my fish configuration
Am I understanding correctly that this is no longer required, and a stock install with the above nixpkgs.url = will have things set up so that cowsay (without it installed) will print something like the following ?
The program 'cowsay' is currently not installed. It is provided by
several packages. You can try it by typing one of the following:
nix-shell -p neo-cowsay
nix-shell -p cowsay
Yes, it should work out of the box with 26.05 or unstable at this point. It looks in the nixpkgs tree being used for pkgs, and if it finds a programs.sqlite file, it enables automatically:
Thanks for this PSA! I’ve added a little function to my Nix flake input/lock syncer that automatically goes and proposes updates to nixos.org tarballs where possible, so I don’t have to do this manually for all my flakes (or update which revisions are locked before I care to):
$ iqan tarball .
Flake: /Users/kivikakk/g/vyx
----------------------------
input nixpkgs-unstable can use the nixos-unstable channel tarball
in flake.nix: github:NixOS/nixpkgs/nixos-unstable -> https://channels.nixos.org/nixos-unstable/nixexprs.tar.zst
release: nixos-26.11pre1064949.34ab99075ac4 (rev unchanged)
locked: https://releases.nixos.org/nixos/unstable/nixos-26.11pre1064949.34ab99075ac4/nixexprs.tar.zst
(C)onvert to tarball, or (I)gnore? C
input nixpkgs-darwin can use the nixpkgs-26.05-darwin channel tarball
in flake.nix: github:NixOS/nixpkgs/nixpkgs-26.05-darwin -> https://channels.nixos.org/nixpkgs-26.05-darwin/nixexprs.tar.zst
release: nixpkgs-darwin-26.05pre1012914.f6107e546a50 (rev unchanged)
locked: https://releases.nixos.org/nixpkgs/26.05-darwin/nixpkgs-darwin-26.05pre1012914.f6107e546a50/nixexprs.tar.zst
(C)onvert to tarball, or (I)gnore? C
input nixpkgs can use the nixos-26.05 channel tarball
in flake.nix: github:NixOS/nixpkgs/nixos-26.05 -> https://channels.nixos.org/nixos-26.05/nixexprs.tar.zst
release: nixos-26.05.8639.c5c4a43b0e80 (rev unchanged)
locked: https://releases.nixos.org/nixos/26.05/nixos-26.05.8639.c5c4a43b0e80/nixexprs.tar.zst
(C)onvert to tarball, or (I)gnore? C
input nixpkgs-iosevka can use the nixos-25.11 channel tarball
in flake.nix: github:NixOS/nixpkgs/nixos-25.11 -> https://channels.nixos.org/nixos-25.11/nixexprs.tar.zst
release: nixos-25.11.6495.e764fc9a4058 (rev unchanged)
locked: https://releases.nixos.org/nixos/25.11/nixos-25.11.6495.e764fc9a4058/nixexprs.tar.xz
(C)onvert to tarball, or (I)gnore? C
$
Or anyone could set up a Git mirror of the repositories outside of GitHub.
Nixpkgs is a special case because of how large it is and how frequently it changes; publishing tarballs on official infra is more practical than expecting some poor community member to keep an up-to-date mirror of that whole thing. But Home Manager, Stylix, etc. are much more tractable, and Git mirroring is a common enough desire for there to be several off-the-shelf solutions for it. Just about anyone who cares about reducing our GitHub dependency could be the change they want to see, with respect to those projects.
Today I tried this overlay to install bun from the unstable channel (w/ pkgs.unstable.bun).
After rebuilding I got bun version 1.3.13 (w/ bun -v), which is the current stable version.
After that I switched (back) the unstable input to nixpkgs-unstable.url = “github:nixos/nixpkgs/nixos-unstable?shallow=1”;, rebuilt and got bun version 1.4.2 (w/ bun -v), which is the current unstable version.