Fix nomad on blowhole

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2023-06-18 23:17:43 +02:00
parent 8a43af9076
commit de385c1d60
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -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 "")
];
}