diff --git a/modules/common.nix b/modules/common.nix index dd5875e..7241549 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -62,6 +62,11 @@ networking.search = ["node.dc1.consul" "service.dc1.consul"]; # networking.firewall.enable = false; + boot.kernel.sysctl = { + "net.ipv6.conf.all.disable_ipv6" = 1; + "net.ipv6.conf.default.disable_ipv6" = 1; + }; + services.openssh = { enable = true; settings.PermitRootLogin = "yes"; diff --git a/modules/nomad.nix b/modules/nomad.nix index 66aebbf..dd336d9 100644 --- a/modules/nomad.nix +++ b/modules/nomad.nix @@ -10,6 +10,8 @@ # Configure insecure registries daemon.settings = { ipv6 = false; # Add this line to disable IPv6 + dns = ["192.168.4.250" "8.8.8.8"]; + dns-search = ["node.dc1.consul" "service.dc1.consul"]; insecure-registries = [ "localhost:5000" "gitea.service.dc1.consul:80"