You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mirror-nixos-branch: add header for "Lockable HTTP Tarball Protocol" (Flakes)
This is part of another PR over in NixOS/infra that implements the
configuration change needed for Fastly and allows one to use
~~~nix
{
inputs = {
nixpkgs.url = "https://channels.nixos.org/nixos-unstable-small/nixexprs.tar.xz";
};
}
~~~
and have it locked in flake.lock accordingly.
This has multiple advantages over using something like
github:NixOS/nixpkgs/nixos-unstable-small.
For example, channels.nixos.org and releases.nixos.org are accessible on
not just IPv4 but also IPv6, unlike GitHub.
Furthermore, the tarballs have a higher compression-ratio than those
served by GitHub and thus require less bandwidth to download.
Additionally, nixexprs.tar.xz contains the precomputed programs.sqlite
which enables the use of the very lightweight programs.command-not-found
with Flakes.
Ref: https://github.com/NixOS/nix/blob/61f49de7ae0b3899abdcc102832523153dd40d35/doc/manual/source/protocols/tarball-fetcher.md
0 commit comments