Add binary cache timeout and fallback
All checks were successful
CI / Check, build and cache Nix flake (push) Successful in 14m19s

This commit is contained in:
Jack O'Sullivan 2023-11-18 00:10:05 +00:00
parent a9a6409034
commit edb5767770
3 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,8 @@ in
NIX_USER_CONF_FILES = toString (pkgs.writeText "nix.conf" NIX_USER_CONF_FILES = toString (pkgs.writeText "nix.conf"
'' ''
experimental-features = nix-command flakes ca-derivations repl-flake experimental-features = nix-command flakes ca-derivations repl-flake
connect-timeout = 5
fallback = true
${lib.my.c.nix.cache.conf} ${lib.my.c.nix.cache.conf}
''); '');

View File

@ -238,6 +238,8 @@ in
settings = with lib.my.c.nix; { settings = with lib.my.c.nix; {
extra-substituters = cache.substituters; extra-substituters = cache.substituters;
extra-trusted-public-keys = cache.keys; extra-trusted-public-keys = cache.keys;
connect-timeout = 5;
fallback = true;
}; };
}; };
}) })

View File

@ -46,6 +46,8 @@ in
experimental-features = [ "nix-command" "flakes" "ca-derivations" ]; experimental-features = [ "nix-command" "flakes" "ca-derivations" ];
extra-substituters = cache.substituters; extra-substituters = cache.substituters;
extra-trusted-public-keys = cache.keys; extra-trusted-public-keys = cache.keys;
connect-timeout = 5;
fallback = true;
}; };
registry = { registry = {
pkgs = { pkgs = {