Skip to content

Binary cache

Because GitKraken is an unfree package, its builds will not be cached in the default Nix cache (cache.nixos.org). This is expected and somewhat documented in nixpkgs manual.

For this reason, NixKraken is using Garnix' public free cache for GitKraken builds, with permission from GitKraken:

Screenshot of support email allowing caching of GitKraken

The cache is populated using Garnix' GitHub integration and uses dedicated Flake outputs to build and push the evaluated builds to the cache.

By using this cache, installing GitKraken is faster than ever. A huge thanks to Garnix!

WARNING

Users who wish to use the programs.nixkraken.package option cannot benefit from the cache unless they use one of the commits listed below.

List of cached commits

NixOS users

NixOS users can configure the cache by editing the Nix configuration file declaratively, using the following option in their system configuration:

nix
{
  nix.extraOptions = ''
    extra-substituters = https://cache.garnix.io
    extra-trusted-public-keys = cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=
  '';
}

Non-NixOS users

Declarative with Flakes

Users managing their configuration declaratively through a flake.nix file can add the cache settings to the nixConfig attribute:

nix
{
  description = "Declarative Nix configuration";

  nixConfig = {
    extra-substituters = "https://cache.garnix.io";
    extra-trusted-public-keys = "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=";
  };

  inputs = { /* ... */ };
  outputs = { /* ... */ };
}

Imperative with nix.conf

Alternatively, the nix.conf file (usually located at /etc/nix/nix.conf) can be imperatively edited to define the cache settings:

txt
extra-substituters = https://cache.garnix.io
extra-trusted-public-keys = cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=

Released under the MIT License