From 082ef6167ea188de4a0439fe63baaca41b19b45b Mon Sep 17 00:00:00 2001 From: Seth Flynn Date: Fri, 31 Jan 2025 08:14:23 -0500 Subject: terraform: switch to plain hcl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • 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' --- modules/flake/default.nix | 3 --- modules/flake/terranix.nix | 59 ---------------------------------------------- 2 files changed, 62 deletions(-) delete mode 100644 modules/flake/default.nix delete mode 100644 modules/flake/terranix.nix (limited to 'modules') diff --git a/modules/flake/default.nix b/modules/flake/default.nix deleted file mode 100644 index 2cb7409..0000000 --- a/modules/flake/default.nix +++ /dev/null @@ -1,3 +0,0 @@ -{ - terranix = ./terranix.nix; -} 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} "$@" - ''; - }; - }; - }; -} -- cgit v1.2.3