From fdaf8680ef5bbcadb7cece43911beff18f90cdb2 Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 15 Oct 2024 07:12:01 -0400 Subject: terranix: update app wrapper --- ext/terranix/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'ext') 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} "$@" '' ); }; -- cgit v1.2.3