From 14115930cc7ac29b7ee2b39e81a5023e341a529c Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sun, 30 Mar 2025 23:51:53 +0100 Subject: [PATCH] docs(web/building): document dev binary cache setup Change-Id: Ia4880b5a2d673acbe264e4e1d8ef301080e0459e Reviewed-on: https://cl.snix.dev/c/snix/+/30287 Autosubmit: Florian Klink Tested-by: besadii Reviewed-by: Ilan Joselevich --- web/content/docs/guides/building.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/web/content/docs/guides/building.md b/web/content/docs/guides/building.md index a96f946c0..466e88da9 100644 --- a/web/content/docs/guides/building.md +++ b/web/content/docs/guides/building.md @@ -60,6 +60,27 @@ $ mg build //snix:cli This uses [crate2nix][] to build each crate dependency individually. +#### Binary cache for Development + +If you want to fetch store paths built by CI, you can configure our +[Harmonia](https://github.com/nix-community/harmonia) deployment as a Nix substituter: + +```nix +{ + nix.settings.trusted-public-keys = [ + "cache.snix.dev-1:miTqzIzmCbX/DyK2tLNXDROk77CbbvcRdWA4y2F8pno=" + ]; + nix.settings.substituters = [ + "https://cache.snix.dev" + ]; +} +``` + +Keep in mind there's no guarantees on paths being available, they get GC'ed +eventually. + + +### Further reading Checkout the [Component Overview]({{< ref "/docs/components/overview" >}}) to learn more about the project structure.