Binary cache

As explained in the caveats section, 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. 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!

Find below several methods to enable this cache.

warning

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

List of cached commits

Non-NixOS users

Declarative with Flakes

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

{
  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 add the following configuration:

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

NixOS users

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

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