dotfiles/terranix/containers/ingress-blowhole/default.nix
Magic_RB a9c3b31b2c
Tell Nomad about the expected store path to potentially skip build
Signed-off-by: Magic_RB <magic_rb@redalder.org>
2023-06-29 20:03:16 +02:00

18 lines
441 B
Nix

{ config', elib, vars, ... }:
let
inherit (elib)
nomadJob;
in
{
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 = config'.flake.nixngConfigurations.ingressBlowhole.config.system.build.toplevel;
upstreams = "\${file(\"${./upstreams.conf}\")}";
};
};
}