summaryrefslogtreecommitdiff
path: root/tofu/default.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-12-13 23:12:51 -0500
committerseth <[email protected]>2023-12-13 23:19:09 -0500
commit974decdfa3449f47892532f9ac728275fb9fa2df (patch)
tree32b5491239060c74cbf3b27ca51bc620b5e62b4f /tofu/default.nix
parent0be27ca642a9f30442d8c0566d00131da5e6b5d0 (diff)
tf: debrand config
Diffstat (limited to 'tofu/default.nix')
-rw-r--r--tofu/default.nix35
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"
- '';
- };
- };
- };
-}