diff options
author | Shea Levy <shea@shealevy.com> | 2014-02-20 10:40:49 -0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2014-02-20 10:40:49 -0500 |
commit | 83c98e4dd6c264b480550c6ae90d4038d99b317d (patch) | |
tree | 218c8bd37798a38975cea4420fa2dfe2c5038dd8 /lib/types.nix | |
parent | 3c871ccbc9f588a7b70f9aaf276b7e7183e3360e (diff) |
loaOf: Allow merging definitions from a list into other definitions IFF there is a name attribute
Diffstat (limited to 'lib/types.nix')
-rw-r--r-- | lib/types.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/types.nix b/lib/types.nix index afc8f80eb0ea..9bce56bf8073 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -132,7 +132,7 @@ rec { { inherit (def) file; value = listToAttrs ( imap (elemIdx: elem: - { name = "${elem.name or "unnamed"}-${toString defIdx}.${toString elemIdx}"; + { name = elem.name or "unnamed-${toString defIdx}.${toString elemIdx}"; value = elem; }) def.value); } |