diff options
author | lassulus <lassulus@lassul.us> | 2020-04-18 18:48:54 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2020-04-18 18:48:54 +0200 |
commit | e613c199203b9f90cc7e4f97c7b1825abb02aa56 (patch) | |
tree | 65da013e40467791faa2e9d9cbcf05b5b7cbd0a4 | |
parent | 7e9e48c0372627a4740012f23093641f21cd6023 (diff) |
lib: add stripAttr
-rw-r--r-- | lib/default.nix | 2 |
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; |