diff options
author | Jeschli <jeschli@gmail.com> | 2020-04-22 12:35:00 +0200 |
---|---|---|
committer | Jeschli <jeschli@gmail.com> | 2020-04-22 12:35:00 +0200 |
commit | 3c0496ec1a774c539cf10311bff821ff07ddbf01 (patch) | |
tree | 9fbafe92c3f26571bb562255d86ffcc2975216ea /lib | |
parent | 119a7cfe5a87323ec7231c263abc444229564a1c (diff) | |
parent | cabaf519b5970cbe5c1e57832d3bd12da4f47371 (diff) |
Merge branch 'master' of https://cgit.lassul.us/stockholm
Diffstat (limited to 'lib')
-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 14e6e27a3..5a948bbf3 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; |