diff options
| author | Seth Flynn <[email protected]> | 2025-01-31 08:14:23 -0500 |
|---|---|---|
| committer | Seth Flynn <[email protected]> | 2025-02-03 05:34:09 -0500 |
| commit | 082ef6167ea188de4a0439fe63baaca41b19b45b (patch) | |
| tree | c51217b3b47601ee95cacfeaeaef426fb7128a6d /modules/flake/terranix.nix | |
| parent | d5ad065e31f4d84824463829eeabfb55dbe9ece4 (diff) | |
terraform: switch to plain hcl
• Removed input 'terranix'
• Removed input 'terranix/bats-assert'
• Removed input 'terranix/bats-support'
• Removed input 'terranix/flake-parts'
• Removed input 'terranix/nixpkgs'
• Removed input 'terranix/systems'
• Removed input 'terranix/terranix-examples'
Diffstat (limited to 'modules/flake/terranix.nix')
| -rw-r--r-- | modules/flake/terranix.nix | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/modules/flake/terranix.nix b/modules/flake/terranix.nix deleted file mode 100644 index fe94839..0000000 --- a/modules/flake/terranix.nix +++ /dev/null @@ -1,59 +0,0 @@ -{ - config, - lib, - flake-parts-lib, - inputs, - ... -}: - -let - inherit (flake-parts-lib) mkSubmoduleOptions; - - namespace = "terranix"; - cfg = config.${namespace}; -in - -{ - options.terranix = mkSubmoduleOptions { - package = lib.mkOption { - type = lib.types.functionTo lib.types.package; - default = pkgs: pkgs.opentofu; - defaultText = lib.literalExpression "pkgs: pkgs.opentofu"; - description = "The Terraform-compatible implementation to use."; - example = lib.literalExpression "pkgs: pkgs.terraform"; - }; - - modules = lib.mkOption { - type = lib.types.listOf lib.types.deferredModule; - default = [ ]; - }; - }; - - config = { - perSystem = - { - lib, - pkgs, - system, - ... - }: - - let - package = cfg.package pkgs; - - terranixConfiguration = inputs.terranix.lib.terranixConfiguration { - inherit system; - inherit (cfg) modules; - }; - in - - { - apps.tf = { - program = pkgs.writeShellScriptBin "tf" '' - ln -sf ${terranixConfiguration} config.tf.json - exec ${lib.getExe package} "$@" - ''; - }; - }; - }; -} |
