From 8d363d2e66a14bef88626efe133a9c9d9ff9041a Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 22 Nov 2022 13:30:00 +0100 Subject: [PATCH] Add after config on nomad and consul --- nix/deuxfleurs.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nix/deuxfleurs.nix b/nix/deuxfleurs.nix index 7f62a42..5e87e5d 100644 --- a/nix/deuxfleurs.nix +++ b/nix/deuxfleurs.nix @@ -230,6 +230,7 @@ in # Enable Hashicorp Consul & Nomad services.consul.enable = true; + systemd.services.consul.after = [ "wg-quick-wg0.service" ]; services.consul.extraConfig = (if cfg.is_raft_server then { server = true; } @@ -269,6 +270,7 @@ in }; services.nomad.enable = true; + systemd.services.nomad.after = [ "wg-quick-wg0.service" ]; services.nomad.package = pkgs.nomad_1_3; services.nomad.extraPackages = [ pkgs.glibc