diff options
| author | Seth Flynn <[email protected]> | 2025-01-30 08:57:47 -0500 |
|---|---|---|
| committer | Seth Flynn <[email protected]> | 2025-01-30 09:01:38 -0500 |
| commit | 6e4304ebdbd08a4baa1e3820e61d44a7b689cf2f (patch) | |
| tree | 3d1b6feaa3c2fedbd03140f86bc0307a29de7ab5 /modules/flake/terranix.nix | |
| parent | 5abb159e0cb609adc86a3238c84656a83031fe9b (diff) | |
flake/terranix: fix eval
Diffstat (limited to 'modules/flake/terranix.nix')
| -rw-r--r-- | modules/flake/terranix.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/flake/terranix.nix b/modules/flake/terranix.nix index cbf57b9..fe94839 100644 --- a/modules/flake/terranix.nix +++ b/modules/flake/terranix.nix @@ -1,7 +1,6 @@ { config, lib, - pkgs, flake-parts-lib, inputs, ... @@ -20,7 +19,6 @@ in type = lib.types.functionTo lib.types.package; default = pkgs: pkgs.opentofu; defaultText = lib.literalExpression "pkgs: pkgs.opentofu"; - apply = fn: fn pkgs; description = "The Terraform-compatible implementation to use."; example = lib.literalExpression "pkgs: pkgs.terraform"; }; @@ -41,6 +39,8 @@ in }: let + package = cfg.package pkgs; + terranixConfiguration = inputs.terranix.lib.terranixConfiguration { inherit system; inherit (cfg) modules; @@ -51,7 +51,7 @@ in apps.tf = { program = pkgs.writeShellScriptBin "tf" '' ln -sf ${terranixConfiguration} config.tf.json - exec ${lib.getExe cfg.package} "$@" + exec ${lib.getExe package} "$@" ''; }; }; |
