From 31711962b9ae7985287b98a165a52c40da402f4b Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Wed, 6 Aug 2025 13:56:34 -0600 Subject: modules: automatically import all modules --- doctrine/lib/importAll.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doctrine/lib/importAll.nix') diff --git a/doctrine/lib/importAll.nix b/doctrine/lib/importAll.nix index 6acabe9..03c5330 100644 --- a/doctrine/lib/importAll.nix +++ b/doctrine/lib/importAll.nix @@ -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; -- cgit v1.2.3