summaryrefslogtreecommitdiff
path: root/ext/terranix/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'ext/terranix/default.nix')
-rw-r--r--ext/terranix/default.nix9
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} "$@"
''
);
};