le client nix-serve change de serveur selon le domaine de la machine
This commit is contained in:
@@ -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;
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user