dotfiles/terranix/main/containers/nfs-csi/default.nix

27 lines
395 B
Nix
Raw Normal View History

{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;
};
};
}