You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
647 B
Nix
23 lines
647 B
Nix
{ config, lib, pkgs, ... }:
|
|
let
|
|
inherit (lib) mkIf mkMerge;
|
|
profiles = config.r6d.profiles;
|
|
computers = config.r6d.computers;
|
|
in {
|
|
nix = mkIf config.r6d.config-generator.nix-serve-client {
|
|
# 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")
|
|
|
|
(mkIf (profiles.isPrunetwork && !profiles.isServer) "http://192.168.1.20:5000")
|
|
];
|
|
extraOptions = ''
|
|
connect-timeout = 5
|
|
'';
|
|
};
|
|
|
|
}
|