dotfiles/terranix/containers/nfs-csi/default.nix
Magic_RB a13865213f Add terranix config for nfs-csi container
Signed-off-by: Magic_RB <magic_rb@redalder.org>
2023-06-16 16:11:22 +02:00

27 lines
388 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;
};
};
}