From 307f27a10b5de96b98efcba50275cb7cdda97907 Mon Sep 17 00:00:00 2001 From: Adrian Cowan Date: Mon, 20 Oct 2025 20:25:58 +1100 Subject: [PATCH] Use ipv4 for nomad and consul to reduce connectivity issues on my network --- 1-nixos-node/configuration.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/1-nixos-node/configuration.nix b/1-nixos-node/configuration.nix index c7d2963..947f5f9 100644 --- a/1-nixos-node/configuration.nix +++ b/1-nixos-node/configuration.nix @@ -46,6 +46,7 @@ }; client = { enabled = true; + preferred_address_family = "ipv4"; %{if cpu_total_compute != null ~} cpu_total_compute = ${cpu_total_compute}; %{endif ~} @@ -71,6 +72,7 @@ webUi = true; interface.bind = "${bind_interface}"; interface.advertise = "${bind_interface}"; + forceAddrFamily = "ipv4"; extraConfig = { client_addr = "{{ GetPrivateInterfaces | exclude \"type\" \"ipv6\" | join \"address\" \" \" }} {{ GetAllInterfaces | include \"flags\" \"loopback\" | join \"address\" \" \" }}"; %{if bootstrap ~}