From 974decdfa3449f47892532f9ac728275fb9fa2df Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 13 Dec 2023 23:12:51 -0500 Subject: tf: debrand config --- tofu/default.nix | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 tofu/default.nix (limited to 'tofu/default.nix') diff --git a/tofu/default.nix b/tofu/default.nix deleted file mode 100644 index fe0d3bd..0000000 --- a/tofu/default.nix +++ /dev/null @@ -1,35 +0,0 @@ -{inputs, ...}: { - perSystem = { - lib, - pkgs, - system, - ... - }: let - tofuConfig = inputs.terranix.lib.terranixConfiguration { - inherit system; - modules = [ - ./cloudflare - ./tailscale - ./cloud.nix - ./vars.nix - ./versions.nix - ]; - }; - in { - apps.gen-tofu = { - type = "app"; - - program = pkgs.writeShellApplication { - name = "tofu-config"; - - runtimeInputs = [pkgs.opentofu]; - - text = '' - config_file="config.tf.json" - [ -e "$config_file" ] && rm -f "$config_file" - cp ${tofuConfig} "$config_file" - ''; - }; - }; - }; -} -- cgit v1.2.3