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, ... }: { config, lib, pkgs, ... }:
let
{ inherit (lib) mkIf mkMerge;
nix = pkgs.lib.mkIf config.r6d.config-generator.nix-serve-client { profiles = config.r6d.profiles;
in {
nix = mkIf config.r6d.config-generator.nix-serve-client {
# Cache http pour le store # Cache http pour le store
requireSignedBinaryCaches = false; 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")
];
}; };
} }

View File

@@ -90,6 +90,7 @@ in
}) })
(mkIf pfl.isPrunetwork { (mkIf pfl.isPrunetwork {
r6d.config-generator.auto-upgrade = true; r6d.config-generator.auto-upgrade = true;
r6d.config-generator.nix-serve-client = true;
r6d.config-generator.swap = true; r6d.config-generator.swap = true;
}) })