2023-06-15 23:04:46 +02:00
|
|
|
{
|
2024-03-02 22:05:30 +01:00
|
|
|
pkgs,
|
|
|
|
elib,
|
|
|
|
vars,
|
|
|
|
config',
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit
|
|
|
|
(elib)
|
|
|
|
nfsVolume
|
|
|
|
nomadJob
|
|
|
|
;
|
|
|
|
in {
|
2023-06-15 23:04:46 +02:00
|
|
|
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;
|
2023-07-10 21:37:08 +02:00
|
|
|
store_path = builtins.toJSON (builtins.mapAttrs (_: builtins.unsafeDiscardStringContext) {
|
|
|
|
website = config'.flake.nixngConfigurations.website.config.system.build.toplevel;
|
|
|
|
});
|
2023-06-15 23:04:46 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|