diff options
Diffstat (limited to 'util/importAll.nix')
| -rw-r--r-- | util/importAll.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/importAll.nix b/util/importAll.nix index 678cf06..cc18640 100644 --- a/util/importAll.nix +++ b/util/importAll.nix @@ -1,5 +1,5 @@ lib: -{ root, exclude ? [] }: +{ root, exclude ? [ ] }: with builtins; with lib; # http://chriswarbo.net/projects/nixos/useful_hacks.html @@ -7,11 +7,11 @@ let basename = removeSuffix ".nix"; isMatch = name: type: (hasSuffix ".nix" name || type == "directory") - && ! elem name (map basename exclude); + && ! elem name (map basename exclude); entry = name: _: { name = basename name; value = import (root + "/${name}"); }; in - mapAttrs' entry (filterAttrs isMatch (readDir root)) +mapAttrs' entry (filterAttrs isMatch (readDir root)) |
