mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-21 23:54:22 +01:00
Allow for arbitrary arguments to nomadJob
and terraformModule
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
0d4698ab78
commit
158ffab7c5
|
@ -1,11 +1,12 @@
|
|||
{}:
|
||||
{ jobspec
|
||||
, vars ? {}
|
||||
}:
|
||||
, ...
|
||||
}@args:
|
||||
{
|
||||
jobspec = "\${file(\"${jobspec}\")}";
|
||||
hcl2 = {
|
||||
enabled = true;
|
||||
inherit vars;
|
||||
};
|
||||
}
|
||||
} // builtins.removeAttrs args [ "name" "source" ]
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
{
|
||||
name
|
||||
, source
|
||||
}:
|
||||
, ...
|
||||
}@args:
|
||||
{
|
||||
source =
|
||||
let
|
||||
|
@ -24,4 +25,4 @@
|
|||
mkdir -p $out/
|
||||
ln -s ${module} $out/main.tf.json
|
||||
'';
|
||||
}
|
||||
} // builtins.removeAttrs args [ "name" "source" ]
|
||||
|
|
Loading…
Reference in a new issue