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

extraction-donnees-privees 2016-07-10-radx
Jean-Pierre PRUNARET 9 years ago
parent b95c4509aa
commit 30c9bd1b71

@ -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")
];
}; };
} }

@ -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;
}) })

Loading…
Cancel
Save