+9
doc/module-system/module-system.chapter.md
···This is in contrast to `config._module.args`, which is only available after all `imports` have been resolved.If the `class` attribute is set and non-`null`, the module system will reject `imports` with a different `_class` declaration.
···This is in contrast to `config._module.args`, which is only available after all `imports` have been resolved.+You may be tempted to use `specialArgs.lib` to provide extra library functions. Doing so limits the interoperability of modules, as well as the interoperability of Module System applications.If the `class` attribute is set and non-`null`, the module system will reject `imports` with a different `_class` declaration.
+2
flake.nix
···- `lib.nixos` for other NixOS-provided functionality, such as [`runTest`](https://nixos.org/manual/nixos/unstable/#sec-call-nixos-test-outside-nixos)
+29
-2
lib/default.nix
···+The name `extends` is a bit misleading, as it doesn't actually extend the library, but rather patches it.+- An "extension function" `f` that returns attributes that will be updated in the returned Nixpkgs library.+This functionality is intended as an escape hatch for when the provided version of the Nixpkgs library has a flaw.+If you were to use it to add new functionality, you will run into compatibility and interoperability issues.