mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-04 14:06:12 +01:00
4a29b6d8d3
Signed-off-by: magic_rb <magic_rb@redalder.org>
27 lines
395 B
Nix
27 lines
395 B
Nix
{elib, ...}: let
|
|
inherit
|
|
(elib)
|
|
nomadJob
|
|
;
|
|
datacenters = builtins.toJSON [
|
|
"do-1"
|
|
"homelab-1"
|
|
];
|
|
in {
|
|
resource."nomad_job"."nfs-controller" = nomadJob {
|
|
jobspec = ./controller.hcl;
|
|
|
|
vars = {
|
|
inherit datacenters;
|
|
};
|
|
};
|
|
|
|
resource."nomad_job"."nfs-node" = nomadJob {
|
|
jobspec = ./node.hcl;
|
|
|
|
vars = {
|
|
inherit datacenters;
|
|
};
|
|
};
|
|
}
|