summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-04-21 21:52:12 +0200
committermakefu <github@syntax-fehler.de>2020-04-21 21:52:12 +0200
commitcd0bc2f0de3f41020f5bd02ce03160b2799b9521 (patch)
treec7c75299a49f110632357bc830b550c9b6470f68 /lib
parentb3a59f2fcfc99aecd90b624a67e5880bafa7ecee (diff)
parent49c283cde7faf00139244b8f58dc1e260a65f665 (diff)
Merge remote-tracking branch 'lass/20.03' into 20.03
Diffstat (limited to 'lib')
-rw-r--r--lib/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/default.nix b/lib/default.nix
index 14e6e27..5a948bb 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -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;