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.
25 lines
685 B
Nix
25 lines
685 B
Nix
9 years ago
|
{ config, lib, pkgs, ... }:
|
||
9 years ago
|
|
||
9 years ago
|
let
|
||
|
inherit (lib) mkIf mkMerge;
|
||
|
profiles = config.r6d.profiles;
|
||
9 years ago
|
cfg = config.r6d.config-generator;
|
||
9 years ago
|
computers = config.r6d.computers;
|
||
9 years ago
|
in {
|
||
|
nix = mkIf config.r6d.config-generator.nix-serve-client {
|
||
9 years ago
|
# Cache http pour le store
|
||
9 years ago
|
requireSignedBinaryCaches = false;
|
||
9 years ago
|
binaryCaches = [
|
||
9 years ago
|
("https://cache.nixos.org/")
|
||
|
(mkIf (profiles.isDubronetwork && (! computers.isMonstre)) "http://192.168.10.169:5000")
|
||
9 years ago
|
(mkIf profiles.isDubronetwork "http://192.168.10.252:5000")
|
||
|
|
||
9 years ago
|
(mkIf (profiles.isPrunetwork && !profiles.isServer) "http://192.168.1.20:5000")
|
||
9 years ago
|
];
|
||
9 years ago
|
extraOptions = ''
|
||
|
connect-timeout = 5
|
||
|
'';
|
||
|
};
|
||
|
|
||
|
}
|