dotfiles/terranix/containers/gateway-mesh/default.nix
Magic_RB 0d4698ab78
Create a way to deploy rest of terranix without containers
Signed-off-by: Magic_RB <magic_rb@redalder.org>
2023-06-29 17:11:13 +02:00

20 lines
320 B
Nix

{ tflib, elib, ... }:
let
inherit (elib)
nomadJob;
inherit (tflib)
tf;
in
{
resource."nomad_job"."mesh" = nomadJob {
count = tf "var.dont_deploy_containers ? 0 : 1";
jobspec = ./job.hcl;
vars = {
"datacenters" = builtins.toJSON [
"do-1"
"homelab-1"
];
};
};
}