tangled
alpha
login
or
join now
da157.id
/
nix-config
0
fork
atom
0xda157's home-manager and nixos config
0
fork
atom
overview
issues
pulls
pipelines
simplify loadDir thingy
0xda157
3 months ago
9d24d244
9f9ca1f7
0/0
Waiting for spindle ...
+1
-12
1 changed file
expand all
collapse all
unified
split
modules
flake
lib
default.nix
+1
-12
modules/flake/lib/default.nix
···
4
mkDisableOption = desc: lib.mkEnableOption desc // { default = true; };
5
6
loadDir =
7
-
dir:
8
-
builtins.readDir dir
9
-
|> lib.mapAttrsToList (
10
-
path: kind:
11
-
if kind == "directory" then
12
-
final.loadDir (dir + "/${path}")
13
-
else if path == "default.nix" then
14
-
[ (dir + "/default.nix") ]
15
-
else
16
-
[ ]
17
-
)
18
-
|> builtins.concatLists;
19
});
20
}
···
4
mkDisableOption = desc: lib.mkEnableOption desc // { default = true; };
5
6
loadDir =
7
+
dir: lib.filesystem.listFilesRecursive dir |> builtins.filter (lib.hasSuffix "default.nix");
0
0
0
0
0
0
0
0
0
0
0
8
});
9
}