dotfiles/terranix/containers/website/default.nix

38 lines
639 B
Nix
Raw Normal View History

{
pkgs,
elib,
tflib,
vars,
config',
...
}: let
inherit
(elib)
nfsVolume
nomadJob
;
inherit
(tflib)
tf
;
in {
imports = [
(elib.buildNixNGSystem {
name = "website";
})
];
resource."nomad_job"."website" = 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 = builtins.toJSON {
website = tf "data.external.nixng-system-website.result.out";
};
};
depends_on = [
"terraform_data.nixng-system-website-copy"
];
};
}