diff --git a/devshell/default.nix b/devshell/default.nix index 66ba449..a4f54a7 100644 --- a/devshell/default.nix +++ b/devshell/default.nix @@ -12,6 +12,8 @@ in NIX_USER_CONF_FILES = toString (pkgs.writeText "nix.conf" '' experimental-features = nix-command flakes ca-derivations repl-flake + connect-timeout = 5 + fallback = true ${lib.my.c.nix.cache.conf} ''); diff --git a/home-manager/modules/common.nix b/home-manager/modules/common.nix index 049d01e..72b14f4 100644 --- a/home-manager/modules/common.nix +++ b/home-manager/modules/common.nix @@ -238,6 +238,8 @@ in settings = with lib.my.c.nix; { extra-substituters = cache.substituters; extra-trusted-public-keys = cache.keys; + connect-timeout = 5; + fallback = true; }; }; }) diff --git a/nixos/modules/common.nix b/nixos/modules/common.nix index e5230d7..339900b 100644 --- a/nixos/modules/common.nix +++ b/nixos/modules/common.nix @@ -46,6 +46,8 @@ in experimental-features = [ "nix-command" "flakes" "ca-derivations" ]; extra-substituters = cache.substituters; extra-trusted-public-keys = cache.keys; + connect-timeout = 5; + fallback = true; }; registry = { pkgs = {