diff options
| author | seth <[email protected]> | 2024-10-15 07:12:01 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-10-15 07:12:01 -0400 |
| commit | fdaf8680ef5bbcadb7cece43911beff18f90cdb2 (patch) | |
| tree | b6b50c0515de2adaeaf77f25d57ddbdad78814e4 /ext/terranix | |
| parent | b2d9d85e418b69cd821097fca6cc11132c713454 (diff) | |
terranix: update app wrapper
Diffstat (limited to 'ext/terranix')
| -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} "$@" '' ); }; |
