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