le client nix-serve change de serveur selon le domaine de la machine
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")
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue