summaryrefslogtreecommitdiffstats
path: root/lib/tests
diff options
context:
space:
mode:
authorSilvan Mosberger <contact@infinisil.com>2020-08-10 17:25:46 +0200
committerSilvan Mosberger <contact@infinisil.com>2020-08-14 22:49:04 +0200
commit42cf8130d76ac811f8d1c934f9b44976050cc90f (patch)
treea3a9f312fbf0768f59946585320382cdff831e71 /lib/tests
parente0ded8f4ba1529fdde28ff027d370c883864fcc8 (diff)
lib/modules: Add syntactic sugar for config._module.freeformType
This introduces `freeformType` as a top-level module attribute, allowing definitions like { freeformType = ...; options = ...; config = ...; }
Diffstat (limited to 'lib/tests')
-rw-r--r--lib/tests/modules/freeform-attrsOf.nix2
-rw-r--r--lib/tests/modules/freeform-lazyAttrsOf.nix2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/tests/modules/freeform-attrsOf.nix b/lib/tests/modules/freeform-attrsOf.nix
index 5dbf4a9d307c..8cc577f38a6c 100644
--- a/lib/tests/modules/freeform-attrsOf.nix
+++ b/lib/tests/modules/freeform-attrsOf.nix
@@ -1,3 +1,3 @@
{ lib, ... }: {
- config._module.freeformType = with lib.types; attrsOf (either str (attrsOf str));
+ freeformType = with lib.types; attrsOf (either str (attrsOf str));
}
diff --git a/lib/tests/modules/freeform-lazyAttrsOf.nix b/lib/tests/modules/freeform-lazyAttrsOf.nix
index 524efa6bd930..36d6c0b13fca 100644
--- a/lib/tests/modules/freeform-lazyAttrsOf.nix
+++ b/lib/tests/modules/freeform-lazyAttrsOf.nix
@@ -1,3 +1,3 @@
{ lib, ... }: {
- config._module.freeformType = with lib.types; lazyAttrsOf (either str (lazyAttrsOf str));
+ freeformType = with lib.types; lazyAttrsOf (either str (lazyAttrsOf str));
}