summaryrefslogtreecommitdiffstats
path: root/lib/modules.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-29 14:15:33 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-29 14:15:33 +0100
commit9143910139b367bd8ee06d588aae396c7c721a52 (patch)
tree34cd44343fbc27daa027e5d491a567b6a937c8bf /lib/modules.nix
parent985f1f2d8a51c06c7c57d1009dc3589589c8c342 (diff)
Support module keys that are paths
Diffstat (limited to 'lib/modules.nix')
-rw-r--r--lib/modules.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/modules.nix b/lib/modules.nix
index 5f11a98c970e..f96013f30420 100644
--- a/lib/modules.nix
+++ b/lib/modules.nix
@@ -42,14 +42,14 @@ rec {
throw "Module `${key}' has an unsupported attribute `${head (attrNames badAttrs)}'."
else
{ inherit file;
- key = m.key or key;
+ key = toString m.key or key;
imports = m.imports or [];
options = m.options or {};
config = m.config or {};
}
else
{ inherit file;
- key = m.key or key;
+ key = toString m.key or key;
imports = m.require or [] ++ m.imports or [];
options = {};
config = removeAttrs m ["key" "require" "imports"];