aboutsummaryrefslogtreecommitdiff
path: root/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'configuration.nix')
-rw-r--r--configuration.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/configuration.nix b/configuration.nix
index dbdbd52..76de0d1 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -210,7 +210,7 @@ in
# Enable Hashicorp Consul & Nomad
services.consul.enable = true;
services.consul.extraConfig =
- let public_ip = (builtins.head node_config.networking.interfaces.eno1.ipv4.addresses).address;
+ let public_ip = (builtins.head node_config.networking.wireguard.interfaces.wg0.ips);
in
{
datacenter = "neptune";
@@ -219,12 +219,12 @@ in
ui = true;
bind_addr = public_ip;
addresses.http = "0.0.0.0";
- retry_join = [ "192.168.1.21" "192.168.1.22" "192.168.1.23" ];
+ retry_join = [ "10.42.0.2" "10.42.0.21" "10.42.0.22" "10.42.0.23" ];
};
services.nomad.enable = true;
services.nomad.settings =
- let public_ip = (builtins.head node_config.networking.interfaces.eno1.ipv4.addresses).address;
+ let public_ip = (builtins.head node_config.networking.wireguard.interfaces.wg0.ips);
in
{
datacenter = "neptune";