Skip to content

Commit 98ccd80

Browse files
SomeoneSergehodlen
authored andcommitted
flake.nix: suggest the binary caches
1 parent 198fc4e commit 98ccd80

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

flake.nix

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,29 @@
66
flake-parts.url = "github:hercules-ci/flake-parts";
77
};
88

9+
# Optional binary cache
10+
nixConfig = {
11+
extra-substituters = [
12+
# Populated by the CI in ggerganov/llama.cpp
13+
"https://llama-cpp.cachix.org"
14+
15+
# A development cache for nixpkgs imported with `config.cudaSupport = true`.
16+
# Populated by https://hercules-ci.com/github/SomeoneSerge/nixpkgs-cuda-ci.
17+
# This lets one skip building e.g. the CUDA-enabled openmpi.
18+
# TODO: Replace once nix-community obtains an official one.
19+
"https://cuda-maintainers.cachix.org"
20+
];
21+
22+
# Verify these are the same keys as published on
23+
# - https://app.cachix.org/cache/llama-cpp
24+
# - https://app.cachix.org/cache/cuda-maintainers
25+
extra-trusted-public-keys = [
26+
"llama-cpp.cachix.org-1:H75X+w83wUKTIPSO1KWy9ADUrzThyGs8P5tmAbkWhQc="
27+
"cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E="
28+
];
29+
};
30+
31+
932
# For inspection, use `nix flake show github:ggerganov/llama.cpp` or the nix repl:
1033
#
1134
# ```bash

0 commit comments

Comments
 (0)