summaryrefslogtreecommitdiff
path: root/ext/terranix
diff options
context:
space:
mode:
Diffstat (limited to 'ext/terranix')
-rw-r--r--ext/terranix/default.nix29
1 files changed, 18 insertions, 11 deletions
diff --git a/ext/terranix/default.nix b/ext/terranix/default.nix
index 93e73a6..c70d4d8 100644
--- a/ext/terranix/default.nix
+++ b/ext/terranix/default.nix
@@ -1,18 +1,25 @@
-{
- perSystem = {pkgs, ...}: {
- terranix = {
- package = pkgs.opentofu.withPlugins (plugins: [
+{inputs, ...}: {
+ perSystem = {
+ pkgs,
+ system,
+ ...
+ }: {
+ packages = {
+ opentofu = pkgs.opentofu.withPlugins (plugins: [
plugins.cloudflare
plugins.tailscale
]);
- modules = [
- ./cloudflare
- ./tailscale
- ./cloud.nix
- ./vars.nix
- ./versions.nix
- ];
+ terranix = inputs.terranix.lib.terranixConfiguration {
+ inherit system;
+ modules = [
+ ./cloudflare
+ ./tailscale
+ ./cloud.nix
+ ./vars.nix
+ ./versions.nix
+ ];
+ };
};
};
}