mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-12 09:51:59 +01:00
d44b4d1d16
Signed-off-by: magic_rb <magic_rb@redalder.org>
39 lines
752 B
Nix
39 lines
752 B
Nix
{
|
|
config',
|
|
elib,
|
|
tflib,
|
|
vars,
|
|
...
|
|
}: let
|
|
inherit
|
|
(elib)
|
|
nomadJob
|
|
;
|
|
inherit
|
|
(tflib)
|
|
tf
|
|
;
|
|
in {
|
|
imports = [
|
|
(elib.buildNixNGSystem {
|
|
name = "ingressBlowhole";
|
|
})
|
|
];
|
|
|
|
resource."nomad_job"."ingress" = nomadJob {
|
|
jobspec = ./job.hcl;
|
|
|
|
vars = {
|
|
flake_ref = "${vars.flake_host}?rev=${vars.flake_rev}&ref=${vars.flake_ref}";
|
|
flake_sha = vars.flake_sha;
|
|
store_path = tf "data.external.nixng-system-ingressBlowhole.result.out";
|
|
upstreams = "\${file(\"${./upstreams.conf}\")}";
|
|
jellyfin = "\${file(\"${./jellyfin.conf}\")}";
|
|
hass = "\${file(\"${./hass.conf}\")}";
|
|
};
|
|
|
|
depends_on = [
|
|
"terraform_data.nixng-system-ingressBlowhole-copy"
|
|
];
|
|
};
|
|
}
|