+33
-1
lib/modules.nix
+33
-1
lib/modules.nix
······+"Expected an option declaration at option path `${path}` but got an attribute set with type ${actualTag}"+When declaring an option, you must wrap the type in a `mkOption` call. It should look somewhat like:
+5
lib/tests/modules.sh
+5
lib/tests/modules.sh
···+# Options: accidental use of an option-type instead of option (or other tagged type; unlikely)+checkConfigError 'Expected an option declaration at option path .result. but got an attribute set with type option-type' config.result ./options-type-error-typical.nix+checkConfigError 'Expected an option declaration at option path .result.here. but got an attribute set with type option-type' config.result.here ./options-type-error-typical-nested.nix+checkConfigError 'Expected an option declaration at option path .result. but got an attribute set with type configuration' config.result ./options-type-error-configuration.nixcheckConfigError 'The option .group..*would be a parent of the following options, but its type .<no description>. does not support nested options.\n\s*- option.s. with prefix .group.enable..*' config.group.enable ./merge-typeless-option.nix
+6
lib/tests/modules/options-type-error-configuration.nix
+6
lib/tests/modules/options-type-error-configuration.nix
+5
lib/tests/modules/options-type-error-typical-nested.nix
+5
lib/tests/modules/options-type-error-typical-nested.nix