2023-06-29 19:11:39 +02:00
|
|
|
{ config', elib, vars, ... }:
|
2023-06-15 23:07:14 +02:00
|
|
|
let
|
|
|
|
inherit (elib)
|
|
|
|
nomadJob;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
resource."nomad_job"."ingress" = nomadJob {
|
|
|
|
jobspec = ./job.hcl;
|
2023-06-29 18:59:38 +02:00
|
|
|
|
2023-06-15 23:07:14 +02:00
|
|
|
vars = {
|
2023-06-19 00:41:49 +02:00
|
|
|
flake_ref = "${vars.flake_host}?rev=${vars.flake_rev}&ref=${vars.flake_ref}";
|
|
|
|
flake_sha = vars.flake_sha;
|
2023-06-29 19:11:39 +02:00
|
|
|
store_path = config'.flake.nixngConfigurations.ingressBlowhole.config.system.build.toplevel;
|
2023-06-15 23:07:14 +02:00
|
|
|
upstreams = "\${file(\"${./upstreams.conf}\")}";
|
2023-09-03 18:03:08 +02:00
|
|
|
jellyfin = "\${file(\"${./jellyfin.conf}\")}";
|
|
|
|
hass = "\${file(\"${./hass.conf}\")}";
|
2023-06-15 23:07:14 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|