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