mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-12 18:01:59 +01:00
aff0158ef7
Signed-off-by: magic_rb <magic_rb@redalder.org>
24 lines
522 B
Nix
24 lines
522 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;
|
|
});
|
|
};
|
|
};
|
|
}
|