Skip to content

Commit

Permalink
flake.nix: suggest the binary caches
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeoneSerge authored and philiptaron committed Dec 31, 2023
1 parent d836174 commit 198ed7e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 198ed7e

Please sign in to comment.