mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-02 04:56:14 +01:00
c09fea6f75
Signed-off-by: Magic_RB <magic_rb@redalder.org>
22 lines
381 B
Nix
22 lines
381 B
Nix
{ elib, ... }:
|
|
let
|
|
inherit (elib)
|
|
nomadJob;
|
|
|
|
flake_host = "";
|
|
flake_rev = "";
|
|
flake_ref = "";
|
|
flake_sha = "";
|
|
in
|
|
{
|
|
resource."nomad_job"."ingress" = nomadJob {
|
|
jobspec = ./job.hcl;
|
|
|
|
vars = {
|
|
flake_ref = "${flake_host}?rev=${flake_rev}&ref=${flake_ref}";
|
|
flake_sha = flake_sha;
|
|
upstreams = "\${file(\"${./upstreams.conf}\")}";
|
|
};
|
|
};
|
|
}
|