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
- GitKraken v11.1.0:
36dcda8c3ea1c6bd23770b711326625712460ba3
- GitKraken v11.1.1:
5017262d69299951c156042e7f64ba63760204c2
- GitKraken v11.2.0:
6df4842b4ef6d95082e749da0dd1c20cc980aab8
- GitKraken v11.2.1:
5476f457e69e71dd998b611c50fdfdaa60d61025
- GitKraken v11.3.0:
a8df292411e748f3e9855c6f929a7d46b5fa52ca
- GitKraken v11.4.0:
fe7d341cfc40398f60a15cbf3d07459b4e3f3fde
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=
'';
}