diff options
Diffstat (limited to 'tofu/default.nix')
| -rw-r--r-- | tofu/default.nix | 35 |
1 files changed, 0 insertions, 35 deletions
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" - ''; - }; - }; - }; -} |
