summaryrefslogtreecommitdiff
path: root/modules/flake/terranix.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/flake/terranix.nix')
-rw-r--r--modules/flake/terranix.nix55
1 files changed, 0 insertions, 55 deletions
diff --git a/modules/flake/terranix.nix b/modules/flake/terranix.nix
deleted file mode 100644
index 0d39043..0000000
--- a/modules/flake/terranix.nix
+++ /dev/null
@@ -1,55 +0,0 @@
-{
- lib,
- flake-parts-lib,
- inputs,
- ...
-}: let
- namespace = "terranix";
-
- inherit
- (lib)
- literalExpression
- mkOption
- mkPackageOption
- types
- ;
-
- inherit
- (flake-parts-lib)
- mkPerSystemOption
- ;
-in {
- options = {
- perSystem = mkPerSystemOption ({
- config,
- pkgs,
- system,
- ...
- }: let
- cfg = config.${namespace};
- in {
- options.${namespace} = {
- modules = mkOption {
- type = types.listOf types.unspecified;
- default = [];
- example = literalExpression "[ ./terranix ]";
- description = ''
- Modules to use in this terranixConfiguration
- '';
- };
-
- package = mkPackageOption pkgs "opentofu" {
- default = ["opentofu"];
- example = literalExpression "pkgs.opentofu.withPlugins (plugins: [ plugins.tailscale ] )";
- };
- };
-
- config = {
- packages.terranix = inputs.terranix.lib.terranixConfiguration {
- inherit system;
- inherit (cfg) modules;
- };
- };
- });
- };
-}