mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-10-05 11:18:24 +02:00
@@ -0,0 +1,11 @@
|
||||
{lib}: {
|
||||
importAll = dir: let
|
||||
entries = builtins.readDir dir;
|
||||
in
|
||||
lib.pipe entries [
|
||||
(lib.filterAttrs (name: type: type == "directory"))
|
||||
builtins.attrNames
|
||||
(builtins.filter (name: builtins.pathExists (dir + "/${name}/default.nix")))
|
||||
(map (name: dir + "/${name}"))
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user