add lib
This commit is contained in:
parent
ecee9286b1
commit
7ce780986b
1 changed files with 7 additions and 0 deletions
7
lib/default.nix
Normal file
7
lib/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{pkgs, ...}: {
|
||||
|
||||
importList = lib.mapAttrsToList (name: _path: ./. + "/${name}")
|
||||
(lib.filterAttrs (filename: kind:
|
||||
filename != "default.nix" && (kind == "regular" || kind == "directory"))
|
||||
(builtins.readDir ./.));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue