diff options
Diffstat (limited to 'util')
| -rw-r--r-- | util/default.nix | 3 | ||||
| -rw-r--r-- | util/importAll.nix | 17 |
2 files changed, 0 insertions, 20 deletions
diff --git a/util/default.nix b/util/default.nix deleted file mode 100644 index 226c69f..0000000 --- a/util/default.nix +++ /dev/null @@ -1,3 +0,0 @@ -lib: { - importAll = import ./importAll.nix lib; -} diff --git a/util/importAll.nix b/util/importAll.nix deleted file mode 100644 index cc18640..0000000 --- a/util/importAll.nix +++ /dev/null @@ -1,17 +0,0 @@ -lib: -{ root, exclude ? [ ] }: -with builtins; with lib; - -# http://chriswarbo.net/projects/nixos/useful_hacks.html -let - basename = removeSuffix ".nix"; - - isMatch = name: type: (hasSuffix ".nix" name || type == "directory") - && ! elem name (map basename exclude); - - entry = name: _: { - name = basename name; - value = import (root + "/${name}"); - }; -in -mapAttrs' entry (filterAttrs isMatch (readDir root)) |
