dotfiles/terranix/main/containers/ingress-blowhole/default.nix
magic_rb 10da34a3ca
Update terranix config for uk3s-nix and terranix changes
Signed-off-by: magic_rb <magic_rb@redalder.org>
2024-07-16 20:41:59 +02:00

42 lines
772 B
Nix

{
config',
elib,
uterranix-lib,
vars,
...
}: let
inherit
(elib)
nomadJob
;
inherit
(uterranix-lib)
tf
;
in {
imports = [
(elib.buildNixNGSystem {
name = "ingressBlowhole";
hosts = [
"blowhole.hosts.in.redalder.org"
];
})
];
resource."nomad_job"."ingress" = nomadJob {
jobspec = ./job.hcl;
vars = {
flake_ref = "unused";
flake_sha = "unused";
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"
];
};
}