From de385c1d6065d131d2aec98fe1cab47184167c7a Mon Sep 17 00:00:00 2001 From: Magic_RB Date: Sun, 18 Jun 2023 23:17:43 +0200 Subject: [PATCH] Fix nomad on blowhole Signed-off-by: Magic_RB --- nixos/systems/blowhole/nomad.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/nixos/systems/blowhole/nomad.nix b/nixos/systems/blowhole/nomad.nix index ae17b19..d8013c8 100644 --- a/nixos/systems/blowhole/nomad.nix +++ b/nixos/systems/blowhole/nomad.nix @@ -26,10 +26,6 @@ in }; }; - systemd.services.hashicorp-nomad.unitConfig = { - ConditionPathExists = "/run/secrets/nomad.json"; - }; - services.hashicorp.nomad = { enable = true; @@ -100,8 +96,8 @@ in "docker.privileged.enabled" = "true"; }; - host_network."default".cidr = secret.network.networks.home.mine or ""; - host_network."mesh".cidr = secret.network.networks.home.mine or ""; + host_network."default".cidr = secret.network.networks.home.amsterdam or ""; + host_network."mesh".cidr = secret.network.networks.home.vpn or ""; network_interface = "enp4s0"; @@ -156,6 +152,6 @@ in virtualisation.docker.enable = true; virtualisation.docker.daemon.settings.dns = [ - (secret.network.ips.blowhole or "") + (secret.network.ips.blowhole.ip or "") ]; }