-2
lib/modules.nix
-2
lib/modules.nix
···
+8
lib/tests/modules.sh
+8
lib/tests/modules.sh
···checkConfigError 'In pathWith, inStore means the path must be absolute' config.impossiblePathOptionType ./pathWith.nix+checkConfigError 'Cannot merge definitions.*\n\s*- In .file.*\n\s*- In .other.*' config.conflict ./mkDefinition.nix+checkConfigError 'A definition for option .viaOptionDefault. is not of type .boolean.*' config.viaOptionDefault ./mkDefinition.nix
+71
lib/tests/modules/mkDefinition.nix
+71
lib/tests/modules/mkDefinition.nix
···
+19
-1
nixos/doc/manual/development/option-def.section.md
+19
-1
nixos/doc/manual/development/option-def.section.md
···Preserving the file location creates better error messages, for example when copying definitions from one option to another.-Other properties like `mkOverride` `mkMerge` `mkAfter` can be used in the `value` attribute but not the other way around.+Other properties like `mkOverride` `mkMerge` `mkAfter` can be used in the `value` attribute but not on the entire definition.The following shows an example configuration that yields an error with the custom position information: