dotfiles/terranix/main/containers/nfs-csi/default.nix
magic_rb 4a29b6d8d3
Move terranix config into terranix/main
Signed-off-by: magic_rb <magic_rb@redalder.org>
2024-04-07 10:45:07 +02:00

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