summaryrefslogtreecommitdiff
path: root/terranix
diff options
context:
space:
mode:
Diffstat (limited to 'terranix')
-rw-r--r--terranix/README.md21
-rw-r--r--terranix/default.nix23
2 files changed, 16 insertions, 28 deletions
diff --git a/terranix/README.md b/terranix/README.md
deleted file mode 100644
index dd2edd0..0000000
--- a/terranix/README.md
+++ /dev/null
@@ -1,21 +0,0 @@
-# ./terranix/
-
-## cloudflare/
-
-DNS, Workers/Pages, Tunnels, etc through [Cloudflare](https://cloudflare.com/)
-
-## tailscale/
-
-Secure, remote access via [tailscale](https://tailscale.com/)
-
-## cloud.nix
-
-[Cloud backend for OpenTofu state](https://opentofu.org/docs/language/settings/tf-cloud/)
-
-## vars.nix
-
-Shared variable definitions
-
-## versions.nix
-
-[Provider configuration](https://opentofu.org/docs/language/providers/configuration/)
diff --git a/terranix/default.nix b/terranix/default.nix
index d7c7778..3c95844 100644
--- a/terranix/default.nix
+++ b/terranix/default.nix
@@ -1,9 +1,18 @@
{
- imports = [
- ./cloudflare
- ./tailscale
- ./cloud.nix
- ./vars.nix
- ./versions.nix
- ];
+ terranix = {
+ package =
+ pkgs:
+ pkgs.opentofu.withPlugins (plugins: [
+ plugins.cloudflare
+ plugins.tailscale
+ ]);
+
+ modules = [
+ ./cloudflare
+ ./tailscale
+ ./cloud.nix
+ ./vars.nix
+ ./versions.nix
+ ];
+ };
}