diff --git a/cluster/services/consul/agent.nix b/cluster/services/consul/agent.nix index 1e0a087..cfc0063 100644 --- a/cluster/services/consul/agent.nix +++ b/cluster/services/consul/agent.nix @@ -10,6 +10,13 @@ let in { + system.extraIncantations = { + runConsul = i: script: i.execShellWith [ config.services.consul.package ] '' + export CONSUL_HTTP_ADDR='${config.links.consulAgent.tuple}' + ${script} + ''; + }; + links.consulAgent.protocol = "http"; services.consul = {