Skip to content

Commit a8c0c27

Browse files
committed
nix: advertise binary cache for flake users
Cachix is no longer needed to be installed by users, because flakes can now set binary caches.
1 parent 49cd963 commit a8c0c27

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

docs/installation.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,16 @@ The Nix derivation installs all 3rd party dependencies.
7575
experimental-features = nix-command flakes
7676
EOF
7777

78-
1. _Optional_: use pre-built binaries from GitHub using [cachix](https://app.cachix.org/cache/unblob):
79-
80-
nix-env -iA cachix -f https://cachix.org/api/v1/install
81-
cachix use unblob
82-
8378
1. Install unblob:
8479

85-
nix profile install github:onekey-sec/unblob
80+
$ nix profile install github:onekey-sec/unblob
81+
do you want to allow configuration setting 'extra-substituters' to be set to 'https://unblob.cachix.org' (y/N)? y
82+
do you want to permanently mark this value as trusted (y/N)? y
83+
do you want to allow configuration setting 'extra-trusted-public-keys' to be set to
84+
'unblob.cachix.org-1:5kWA6DwOg176rSqU8TOTBXWxsDB4LoCMfGfTgL5qCAE=' (y/N)? y
85+
do you want to permanently mark this value as trusted (y/N)? y
86+
87+
Using and trusting substituter (binary cache) and its public key is optional but greatly speeds up installation.
8688

8789
- Check that everything works correctly:
8890

flake.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
flake = false;
2121
};
2222

23+
nixConfig = {
24+
extra-substituters = [ "https://unblob.cachix.org" ];
25+
extra-trusted-public-keys = [
26+
"unblob.cachix.org-1:5kWA6DwOg176rSqU8TOTBXWxsDB4LoCMfGfTgL5qCAE="
27+
];
28+
};
29+
2330
outputs = { self, nixpkgs, filter, unblob-native, pyperscan, sasquatch, ... }:
2431
let
2532
# System types to support.

0 commit comments

Comments
 (0)