nixpkgs/lib/tests/modules/options-type-error-configuration.nix
Robert Hensing 0d472a6201 lib/modules: Report a good error when option tree has bare type
Note that this removes the possibility of declaring an option
named `_type`.
2023-08-14 10:44:56 +02:00

7 lines
149 B
Nix

{ lib, ... }: {
options = {
# unlikely mistake, but we can catch any attrset with _type
result = lib.evalModules { modules = []; };
};
}