From 764ae44a91d8855c1c40d89f0698728418d2978c Mon Sep 17 00:00:00 2001 From: Valentin Gagarin Date: Mon, 13 Jul 2026 16:37:19 +0200 Subject: [PATCH] move the note to set up your own binary cache to the end Beginners who just want to use a Nix project with expensive builds and land on this guide will be confused about this more advanced workflow. --- source/guides/recipes/add-binary-cache.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/guides/recipes/add-binary-cache.md b/source/guides/recipes/add-binary-cache.md index 2d743070f6..d6779ec2bf 100755 --- a/source/guides/recipes/add-binary-cache.md +++ b/source/guides/recipes/add-binary-cache.md @@ -3,10 +3,6 @@ Nix can be configured to use a binary cache with the [`substituters`](https://nix.dev/manual/nix/latest/command-ref/conf-file.html#conf-substituters) and [`trusted-public-keys`](https://nix.dev/manual/nix/latest/command-ref/conf-file.html#conf-trusted-public-keys) settings, either exclusively or in addition to cache.nixos.org. -:::{tip} -Follow the tutorial to [set up an HTTP binary cache](setup-http-binary-cache) and create a key pair for signing store objects. -::: - For example, given a binary cache at `https://example.org` with public key `My56...Q==%`, and some derivation in `default.nix`, make Nix exclusively use that cache once by passing [settings as command line flags](https://nix.dev/manual/nix/latest/command-ref/conf-file#command-line-flags): ```shell-session @@ -40,6 +36,10 @@ On NixOS, Nix is configured through the [`nix.settings`](https://search.nixos.or ``` :::: +## Next steps + +- Follow the tutorial to [set up your own HTTP binary cache](setup-http-binary-cache) + :::{tip} Use [remote build machines](distributed-build-setup-tutorial) as preferred binary caches to reduce your external traffic. :::