Skip to content

mibmo/cache-it

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Mar 9, 2024
f3717e1 · Mar 9, 2024

History

13 Commits
Mar 9, 2024
Mar 8, 2024
Mar 8, 2024
Mar 9, 2024

Repository files navigation

Binary cache for everything

GitHub Actions Workflow Status

An up-to-date binary cache for several projects. Builds are generated nightly to ensure the latest version is always cached.

System support

The binary caches try to have binaries for all supported platforms, but generally

  • x86_64-linux
  • aarch64-linux
  • x86_64-darwin
  • aarch64-darwin

Caches

Unless noted otherwise, every cache has full support for the relevant project's supported systems.

Usage

Substitute the relevant CACHE_NAME (e.g. deploy-rs) and CACHE_KEY (e.g. deploy-rs.cachix.org-1:xfNobmiwF/vzvK1gpfediPwpdIP0rpDV2rYqx40zdSI=) into the below snippets to use the caches.

Flake-based system

To use the binary cache for nixos systems configured via flake, first add the cache as a substituter and then trust the public key.

nix.settings = {
  substituters = [ "https://CACHE_NAME.cachix.org" ];
  trusted-public-keys = [ "CACHE_KEY" ];
};

Non-flake system

To use the binary cache, add it to your nix.conf.

extra-substituters = https://CACHE_NAME.cachix.org
extra-trusted-public-keys = CACHE_KEY

Per-flake configuration

Flakes can suggest nix.conf changes when evaluated via the top-level nixosConfig attribute. To add the cache for users of your flake, add the following to your flake

{
  input = { ... };
  outputs = { ... };
  nixConfig = {
    extra-substituters = [ "https://CACHE_NAME.cachix.org" ];
    extra-trusted-public-keys = [ "CACHE_KEY" ];
  };
}

About

Binary caches for nix-supporting projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages