summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJeschli <jeschli@gmail.com>2020-04-22 12:35:00 +0200
committerJeschli <jeschli@gmail.com>2020-04-22 12:35:00 +0200
commita19f904d940ba51cdbe22adc49e8f4ff735c2029 (patch)
treea931f3e825dcd82c791b512fd7c0cf5d9e91f2e1 /lib
parent9d62e48c8011fae4c0df8d797fc964282f2d7655 (diff)
parente613c199203b9f90cc7e4f97c7b1825abb02aa56 (diff)
Merge branch 'master' of https://cgit.lassul.us/stockholm
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;