2023-03-05 21:39:15 +02:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.consul;
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
hostLinks = lib.genAttrs cfg.nodes.agent (hostName: {
|
|
|
|
consul = {
|
|
|
|
ipv4 = config.vars.mesh.${hostName}.meshIp;
|
|
|
|
};
|
|
|
|
});
|
|
|
|
services.consul = {
|
2023-03-22 00:51:35 +02:00
|
|
|
nodes.agent = [ "checkmate" "thunderskin" "VEGAS" ];
|
2023-03-06 18:58:29 +02:00
|
|
|
nixos.agent = [
|
|
|
|
./agent.nix
|
|
|
|
./remote-api.nix
|
|
|
|
];
|
2023-03-05 21:39:15 +02:00
|
|
|
};
|
|
|
|
}
|