about summary refs log tree commit diff
path: root/doc/module-system
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2023-04-17 19:48:53 +0200
committerRobert Hensing <robert@roberthensing.nl>2023-05-06 18:32:58 +0200
commit8054785157119ea12e526481924d6676427904bb (patch)
treed62be0513289427454c94acc1ef86444249c21f8 /doc/module-system
parent8f02e95aff2b9cb94470ec379e2a3f55858cb03d (diff)
downloadnixlib-8054785157119ea12e526481924d6676427904bb.tar
nixlib-8054785157119ea12e526481924d6676427904bb.tar.gz
nixlib-8054785157119ea12e526481924d6676427904bb.tar.bz2
nixlib-8054785157119ea12e526481924d6676427904bb.tar.lz
nixlib-8054785157119ea12e526481924d6676427904bb.tar.xz
nixlib-8054785157119ea12e526481924d6676427904bb.tar.zst
nixlib-8054785157119ea12e526481924d6676427904bb.zip
lib/modules: Move class out of specialArgs
Diffstat (limited to 'doc/module-system')
-rw-r--r--doc/module-system/module-system.chapter.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/module-system/module-system.chapter.md b/doc/module-system/module-system.chapter.md
index 9a24ab70c6c1..51e600d75640 100644
--- a/doc/module-system/module-system.chapter.md
+++ b/doc/module-system/module-system.chapter.md
@@ -28,11 +28,11 @@ An attribute set of module arguments that can be used in `imports`.
 
 This is in contrast to `config._module.args`, which is only available after all `imports` have been resolved.
 
-#### `specialArgs.class` {#module-system-lib-evalModules-param-specialArgs-class}
+#### `class` {#module-system-lib-evalModules-param-class}
 
-If the `class` attribute is set in `specialArgs`, the module system will reject modules with a different `class`.
+If the `class` attribute is set and non-`null`, the module system will reject `imports` with a different `class`.
 
-The `class` value should be in lower [camel case](https://en.wikipedia.org/wiki/Camel_case).
+The `class` value should be a string in lower [camel case](https://en.wikipedia.org/wiki/Camel_case).
 
 If applicable, the `class` should match the "prefix" of the attributes used in (experimental) [flakes](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-flake.html#description). Some examples are: