17 lines
302 B
Nix
17 lines
302 B
Nix
{ config, lib, ... }:
|
|
|
|
let
|
|
cfg = config.services.consul;
|
|
in
|
|
|
|
{
|
|
hostLinks = lib.genAttrs cfg.nodes.agent (hostName: {
|
|
consul = {
|
|
ipv4 = config.vars.mesh.${hostName}.meshIp;
|
|
};
|
|
});
|
|
services.consul = {
|
|
nodes.agent = [ "checkmate" "VEGAS" ];
|
|
nixos.agent = ./agent.nix;
|
|
};
|
|
}
|