Add after config on nomad and consul

This commit is contained in:
Alex 2022-11-22 13:30:00 +01:00
parent 6659deb544
commit 8d363d2e66
Signed by untrusted user: lx
GPG key ID: 0E496D15096376BE

View file

@ -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