23 lines
377 B
Nix
23 lines
377 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
imports = [ ../../tv/consul ];
|
|
tv.consul = rec {
|
|
enable = true;
|
|
|
|
inherit (config.tv.identity) self;
|
|
inherit (self) dc;
|
|
|
|
server = true;
|
|
|
|
hosts = with config.tv.identity.hosts; [
|
|
# TODO get this list automatically from each host where tv.consul.enable is true
|
|
cd
|
|
mkdir
|
|
nomic
|
|
rmdir
|
|
#wu
|
|
];
|
|
};
|
|
}
|