diff options
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/terranix/default.nix | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ext/terranix/default.nix b/ext/terranix/default.nix index 1af9002..72f75ad 100644 --- a/ext/terranix/default.nix +++ b/ext/terranix/default.nix @@ -24,13 +24,12 @@ in { apps = { - apply-tf = { + tf = { type = "app"; program = lib.getExe ( - pkgs.writeShellScriptBin "apply" '' - cp --force ${terranix} config.tf.json \ - && ${lib.getExe opentofu} init \ - && ${lib.getExe opentofu} apply + pkgs.writeShellScriptBin "tf" '' + ln -sf ${terranix} config.tf.json + exec ${lib.getExe opentofu} "$@" '' ); }; |
