dotfiles/terranix/containers/website/default.nix
magic_rb 52684b1723
Nah it won't work
Signed-off-by: magic_rb <richard@brezak.sk>
2023-10-15 18:56:29 +02:00

19 lines
503 B
Nix

{ pkgs, elib, vars, config', ... }:
let
inherit (elib)
nfsVolume
nomadJob;
in
{
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 (builtins.mapAttrs (_: builtins.unsafeDiscardStringContext) {
website = config'.flake.nixngConfigurations.website.config.system.build.toplevel;
});
};
};
}