mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-29 11:36:16 +01:00
a13865213f
Signed-off-by: Magic_RB <magic_rb@redalder.org>
27 lines
388 B
Nix
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;
|
|
};
|
|
};
|
|
}
|