mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-04 22:14:58 +01:00
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;
|
||
|
};
|
||
|
};
|
||
|
}
|