mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-29 19:46:17 +01:00
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}\")}";
|
||
|
};
|
||
|
};
|
||
|
}
|