summaryrefslogtreecommitdiff
path: root/modules/flake/terranix.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-02-10 19:11:33 -0500
committerseth <[email protected]>2024-02-10 19:11:33 -0500
commit082dc5e828334f4ceae44a514c300cf7d015ca92 (patch)
tree61aba670a8fe82967497a57aecb8a3b597037dde /modules/flake/terranix.nix
parentf8d8753cd7cdf81e2a88abb4bcdf3739399eff5d (diff)
flakeModules/terranix: always use terranix.lib
why would i use anything else lol
Diffstat (limited to 'modules/flake/terranix.nix')
-rw-r--r--modules/flake/terranix.nix11
1 files changed, 2 insertions, 9 deletions
diff --git a/modules/flake/terranix.nix b/modules/flake/terranix.nix
index 66f79b9..294ee2b 100644
--- a/modules/flake/terranix.nix
+++ b/modules/flake/terranix.nix
@@ -1,6 +1,7 @@
{
lib,
flake-parts-lib,
+ inputs,
...
}: let
namespace = "terranix";
@@ -30,14 +31,6 @@ in {
cfg = config.${namespace};
in {
options.${namespace} = {
- builder = mkOption {
- type = types.functionTo (types.lazyAttrsOf types.raw);
- example = literalExpression "inputs.terranix.lib.terranixConfiguration";
- description = mdDoc ''
- Function used to build this terranixConfiguration
- '';
- };
-
modules = mkOption {
type = types.listOf types.unspecified;
default = [];
@@ -62,7 +55,7 @@ in {
};
config = {
- terranix.configuration = cfg.builder {
+ terranix.configuration = inputs.terranix.lib.terranixConfiguration {
inherit system;
inherit (cfg) modules;
};