modules: automatically import all modules
This commit is contained in:
parent
8741b32021
commit
5d375d1d93
|
@ -1,6 +1,6 @@
|
|||
{lib}: {
|
||||
root,
|
||||
exclude ? [],
|
||||
exclude ? ["default"],
|
||||
}:
|
||||
with builtins;
|
||||
with lib;
|
||||
|
@ -10,7 +10,7 @@ with lib;
|
|||
|
||||
isMatch = name: type:
|
||||
(hasSuffix ".nix" name || type == "directory")
|
||||
&& ! elem name (map basename exclude);
|
||||
&& ! elem (basename name) exclude;
|
||||
|
||||
entry = name: _: {
|
||||
name = basename name;
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
{
|
||||
imports = [
|
||||
./sway
|
||||
];
|
||||
{doctrine, ...}: {
|
||||
imports = builtins.attrValues (doctrine.lib.importAll {root = ./.;});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue