dotfiles/terranix/lib/nomad_job.nix
Magic_RB 13b14f7025
Fix removal of attributes in nomadJob
Signed-off-by: Magic_RB <magic_rb@redalder.org>
2023-06-29 19:10:46 +02:00

13 lines
188 B
Nix

{}:
{ jobspec
, vars ? {}
, ...
}@args:
{
jobspec = "\${file(\"${jobspec}\")}";
hcl2 = {
enabled = true;
inherit vars;
};
} // builtins.removeAttrs args [ "jobspec" "vars" ]