summaryrefslogtreecommitdiffstats
path: root/lib/types.nix
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2014-02-08 15:20:15 -0500
committerShea Levy <shea@shealevy.com>2014-02-08 15:20:25 -0500
commit84a7a09bc8c0bd1b53ea5f56ae6426e3a2e9bb21 (patch)
treecdaf2020081cdc5ebedc8e8cc2c5840a1fcfe9b8 /lib/types.nix
parentee14f8da9a04daa6c0412d983aa8daf37a539662 (diff)
Try to improve naming of list elements in loaOf types
Signed-off-by: Shea Levy <shea@shealevy.com>
Diffstat (limited to 'lib/types.nix')
-rw-r--r--lib/types.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/types.nix b/lib/types.nix
index bdd21f123952..afc8f80eb0ea 100644
--- a/lib/types.nix
+++ b/lib/types.nix
@@ -132,7 +132,7 @@ rec {
{ inherit (def) file;
value = listToAttrs (
imap (elemIdx: elem:
- { name = "unnamed-${toString defIdx}.${toString elemIdx}";
+ { name = "${elem.name or "unnamed"}-${toString defIdx}.${toString elemIdx}";
value = elem;
}) def.value);
}