summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorSomeone Serge <sergei.kozlukov@aalto.fi>2023-12-30 18:25:25 +0000
committerPhilip Taron <philip.taron@gmail.com>2023-12-31 13:14:58 -0800
commit198ed7ebfc89b8f2b35a8b1655d57bfb57530c1a (patch)
tree5683622996a02b032d847494e7ffdec578f84f92 /flake.nix
parentd8361747317c5cb2e00e7fb3b59ff4dce5a176a5 (diff)
flake.nix: suggest the binary caches
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 8d0f095d..488ed6c5 100644
--- a/flake.nix
+++ b/flake.nix
@@ -6,6 +6,29 @@
flake-parts.url = "github:hercules-ci/flake-parts";
};
+ # Optional binary cache
+ nixConfig = {
+ extra-substituters = [
+ # Populated by the CI in ggerganov/llama.cpp
+ "https://llama-cpp.cachix.org"
+
+ # A development cache for nixpkgs imported with `config.cudaSupport = true`.
+ # Populated by https://hercules-ci.com/github/SomeoneSerge/nixpkgs-cuda-ci.
+ # This lets one skip building e.g. the CUDA-enabled openmpi.
+ # TODO: Replace once nix-community obtains an official one.
+ "https://cuda-maintainers.cachix.org"
+ ];
+
+ # Verify these are the same keys as published on
+ # - https://app.cachix.org/cache/llama-cpp
+ # - https://app.cachix.org/cache/cuda-maintainers
+ extra-trusted-public-keys = [
+ "llama-cpp.cachix.org-1:H75X+w83wUKTIPSO1KWy9ADUrzThyGs8P5tmAbkWhQc="
+ "cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E="
+ ];
+ };
+
+
# For inspection, use `nix flake show github:ggerganov/llama.cpp` or the nix repl:
#
# ```bash