lib: add stripAttr

This commit is contained in:
lassulus 2020-04-18 18:48:54 +02:00
parent eb15765624
commit 54827be4cc
1 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,8 @@ let
indent = replaceChars ["\n"] ["\n "];
stripAttr = converge (filterAttrsRecursive (n: v: v != {} && v != null));
mapNixDir = f: x: {
list = foldl' mergeAttrs {} (map (mapNixDir1 f) x);
path = mapNixDir1 f x;