mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-29 19:46:17 +01:00
0d4698ab78
Signed-off-by: Magic_RB <magic_rb@redalder.org>
20 lines
320 B
Nix
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"
|
|
];
|
|
};
|
|
};
|
|
}
|