From 3809201e8db48cb4617e96cd70e0911b339fe763 Mon Sep 17 00:00:00 2001 From: ibizaman Date: Wed, 29 May 2024 20:32:36 -0700 Subject: [PATCH] add instructions to use public cache --- docs/usage.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/usage.md b/docs/usage.md index 643d0c3..5e35d36 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -16,6 +16,18 @@ imports = [ ]; ``` +You can also use the public cache as a substituter with: + +```nix +nix.settings.trusted-public-keys = [ + "selfhostblocks.cachix.org-1:H5h6Uj188DObUJDbEbSAwc377uvcjSFOfpxyCFP7cVs=" +]; + +nix.settings.substituters = [ + "https://selfhostblocks.cachix.org" +]; +``` + For now, Self Host Blocks has a hard dependency on `sops-nix`. I am [working on removing that](https://github.com/ibizaman/selfhostblocks/issues/24) so you can use any secrets manager you want. Until then, you also need to import the `sops-nix` module: