summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2020-01-08 22:48:13 +0100
committerVladimír Čunát <v@cunat.cz>2020-01-08 22:48:13 +0100
commit5c780036c595d3817207a08934b3cdb67aa2bd1a (patch)
treecae450e80a2a10c499dbf3f786c4fb23bb27356f /lib
parenta823616723c44700a1c976fee77aafb470388e19 (diff)
parent3f0fee752d6f5f5d0774cc7d9bcf8491562b453b (diff)
downloadnixpkgs-5c780036c595d3817207a08934b3cdb67aa2bd1a.tar
nixpkgs-5c780036c595d3817207a08934b3cdb67aa2bd1a.tar.gz
nixpkgs-5c780036c595d3817207a08934b3cdb67aa2bd1a.tar.bz2
nixpkgs-5c780036c595d3817207a08934b3cdb67aa2bd1a.tar.lz
nixpkgs-5c780036c595d3817207a08934b3cdb67aa2bd1a.tar.xz
nixpkgs-5c780036c595d3817207a08934b3cdb67aa2bd1a.tar.zst
nixpkgs-5c780036c595d3817207a08934b3cdb67aa2bd1a.zip
Merge branch 'master' into staging-next
The nss rebuild isn't so small.
Diffstat (limited to 'lib')
-rw-r--r--lib/modules.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/modules.nix b/lib/modules.nix
index 48788ae933d..aebc9874aa4 100644
--- a/lib/modules.nix
+++ b/lib/modules.nix
@@ -123,7 +123,7 @@ rec {
     if m ? config || m ? options then
       let badAttrs = removeAttrs m ["_file" "key" "disabledModules" "imports" "options" "config" "meta"]; in
       if badAttrs != {} then
-        throw "Module `${key}' has an unsupported attribute `${head (attrNames badAttrs)}'. This is caused by assignments to the top-level attributes `config' or `options'."
+        throw "Module `${key}' has an unsupported attribute `${head (attrNames badAttrs)}'. This is caused by introducing a top-level `config' or `options' attribute. Add configuration attributes immediately on the top level instead, or move all of them (namely: ${toString (attrNames badAttrs)}) into the explicit `config' attribute."
       else
         { _file = m._file or file;
           key = toString m.key or key;