mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-12 09:51:59 +01:00
4a29b6d8d3
Signed-off-by: magic_rb <magic_rb@redalder.org>
40 lines
643 B
Nix
40 lines
643 B
Nix
{
|
|
pkgs,
|
|
elib,
|
|
tflib,
|
|
vars,
|
|
config',
|
|
...
|
|
}: let
|
|
inherit
|
|
(elib)
|
|
nfsVolume
|
|
nomadJob
|
|
;
|
|
inherit
|
|
(tflib)
|
|
tf
|
|
;
|
|
in {
|
|
imports = [
|
|
(elib.buildNixNGSystem {
|
|
name = "website";
|
|
hosts = [
|
|
"blowhole.hosts.in.redalder.org"
|
|
];
|
|
})
|
|
];
|
|
resource."nomad_job"."website" = nomadJob {
|
|
jobspec = ./job.hcl;
|
|
vars = {
|
|
flake_ref = "unused";
|
|
flake_sha = "unused";
|
|
store_path = builtins.toJSON {
|
|
website = tf "data.external.nixng-system-website.result.out";
|
|
};
|
|
};
|
|
depends_on = [
|
|
"terraform_data.nixng-system-website-copy"
|
|
];
|
|
};
|
|
}
|