dotfiles/terranix/containers/ingress-blowhole/default.nix
magic_rb b4be203edf
Improve nixng host copying and drop sha and ref completely
Signed-off-by: magic_rb <magic_rb@redalder.org>
2024-04-06 16:40:33 +02:00

42 lines
756 B
Nix

{
config',
elib,
tflib,
vars,
...
}: let
inherit
(elib)
nomadJob
;
inherit
(tflib)
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"
];
};
}