git.iko.soy/typeable/nixpkgs
on master help sign in
nixos: Try to show an helpful message when the user sets config. or options.

Feel free to improve or remove :-)

commit350fa1f775aa79e0b9934a6c6e916e5ef76d00c9 authorLuca Bruno <lucabru@src.gnome.org> dateSat 1 Nov 2014, 23:29 (12 years ago) parent0bba805
1 file changed+1−1
lib/modules.nix+1−1
lib/modules.nix+1−1
@@ -58,7 +58,7 @@ rec {
5858 if m ? config || m ? options then
5959 let badAttrs = removeAttrs m ["imports" "options" "config" "key" "_file"]; in
6060 if badAttrs != {} then
61− throw "Module `${key}' has an unsupported attribute `${head (attrNames badAttrs)}'."
61+ throw "Module `${key}' has an unsupported attribute `${head (attrNames badAttrs)}'. This is caused by assignments to the top-level attributes `config' or `options'."
6262 else
6363 { file = m._file or file;
6464 key = toString m.key or key;