stockholm/2configs/tv/consul-server.nix
2015-07-24 17:34:08 +02:00

22 lines
344 B
Nix

{ config, ... }:
{
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
];
};
}