le client nix-serve change de serveur selon le domaine de la machine

This commit is contained in:
2016-07-10 21:23:30 +02:00
parent b95c4509aa
commit 30c9bd1b71
2 changed files with 11 additions and 5 deletions

View File

@@ -1,9 +1,14 @@
{ config, pkgs, ... }:
{
nix = pkgs.lib.mkIf config.r6d.config-generator.nix-serve-client {
{ config, lib, pkgs, ... }:
let
inherit (lib) mkIf mkMerge;
profiles = config.r6d.profiles;
in {
nix = mkIf config.r6d.config-generator.nix-serve-client {
# Cache http pour le store
requireSignedBinaryCaches = false;
binaryCaches = [ "http://192.168.10.169:5000" ];
binaryCaches = [
(mkIf profiles.isDubronetwork "http://192.168.10.169:5000")
(mkIf profiles.isPrunetwork "http://192.168.1.20:5000")
];
};
}