mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
lib.modules: configurationClass -> class
This simplifies the documentation. `configuration` is implied by `_type`.
This commit is contained in:
parent
89491bef8d
commit
eab660d91e
@ -100,6 +100,6 @@ A portion of the configuration tree which is elided from `config`.
|
||||
|
||||
A nominal type marker, always `"configuration"`.
|
||||
|
||||
#### `configurationClass` {#module-system-lib-evalModules-return-value-_configurationClass}
|
||||
#### `class` {#module-system-lib-evalModules-return-value-_configurationClass}
|
||||
|
||||
Equal to the [`class` parameter](#module-system-lib-evalModules-param-class).
|
||||
The [`class` argument](#module-system-lib-evalModules-param-class).
|
||||
|
@ -326,7 +326,7 @@ let
|
||||
config = checked (removeAttrs config [ "_module" ]);
|
||||
_module = checked (config._module);
|
||||
inherit extendModules type;
|
||||
configurationClass = class;
|
||||
class = class;
|
||||
};
|
||||
in result;
|
||||
|
||||
|
@ -364,7 +364,7 @@ checkConfigOutput '^1$' config.sub.specialisation.value ./extendModules-168767-i
|
||||
|
||||
# Class checks, evalModules
|
||||
checkConfigOutput '^{ }$' config.ok.config ./class-check.nix
|
||||
checkConfigOutput '"nixos"' config.ok.configurationClass ./class-check.nix
|
||||
checkConfigOutput '"nixos"' config.ok.class ./class-check.nix
|
||||
checkConfigError 'The module .*/module-class-is-darwin.nix was imported into nixos instead of darwin.' config.fail.config ./class-check.nix
|
||||
checkConfigError 'The module foo.nix#darwinModules.default was imported into nixos instead of darwin.' config.fail-anon.config ./class-check.nix
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user