Skip to content

Commit a389bb6

Browse files
committed
plugins/by-name: remove pathExists check
1 parent e6c555b commit a389bb6

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

modules/plugins.nix

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
{ lib, ... }:
22
let
3-
inherit (builtins) readDir pathExists;
3+
inherit (builtins) readDir;
44
inherit (lib.attrsets) foldlAttrs;
5-
inherit (lib.lists) optional optionals;
5+
inherit (lib.lists) optional;
66
by-name = ../plugins/by-name;
77
in
88
{
99
imports =
1010
[ ../plugins ]
11-
++ optionals (pathExists by-name) (
12-
foldlAttrs (
13-
prev: name: type:
14-
prev ++ optional (type == "directory") (by-name + "/${name}")
15-
) [ ] (readDir by-name)
16-
);
11+
++ foldlAttrs (
12+
prev: name: type:
13+
prev ++ optional (type == "directory") (by-name + "/${name}")
14+
) [ ] (readDir by-name);
1715
}

0 commit comments

Comments
 (0)