ajustement des règles d'utilisation du cache

extraction-donnees-privees
Yves Dubromelle 9 years ago
parent b38e5a87bb
commit 7cb371510b

@ -5,20 +5,20 @@ let
profiles = config.r6d.profiles; profiles = config.r6d.profiles;
cfg = config.r6d.config-generator; cfg = config.r6d.config-generator;
computers = config.r6d.computers; computers = config.r6d.computers;
in { in
nix = mkIf config.r6d.config-generator.nix-serve-client {
mkIf cfg.nix-serve-client {
nix = {
# Cache http pour le store # Cache http pour le store
requireSignedBinaryCaches = false; requireSignedBinaryCaches = false;
binaryCaches = [ binaryCaches = [
("https://cache.nixos.org/") "https://cache.nixos.org/"
(mkIf (profiles.isDubronetwork && (! computers.isMonstre)) "http://192.168.10.169:5000")
(mkIf profiles.isDubronetwork "http://192.168.10.252:5000")
(mkIf (profiles.isDubronetwork && (! computers.isRollo)) "http://nix-cache.dubronetwork.fr:5001")
(mkIf (profiles.isPrunetwork && !profiles.isServer) "http://192.168.1.20:5000") (mkIf (profiles.isPrunetwork && !profiles.isServer) "http://192.168.1.20:5000")
]; ];
extraOptions = '' extraOptions = ''
connect-timeout = 5 connect-timeout = 5
''; '';
}; };
}
}

Loading…
Cancel
Save