checkpoint
This commit is contained in:
parent
cb30a0ba8b
commit
cc86b0a815
59 changed files with 834 additions and 123 deletions
|
|
@ -1,8 +1,19 @@
|
|||
{...}: {
|
||||
imports = ./.
|
||||
{lib, ...}: {
|
||||
imports =
|
||||
./.
|
||||
|> builtins.readDir
|
||||
|> builtins.attrsToList
|
||||
|> builtins.map ({ name, value }: { type = value; path = ./. "/${name}/flake-module.nix" })
|
||||
|> builtins.filter ({ type, path }: type == "directory" && (builtins.pathExists path))
|
||||
|> builtins.map ({ name }: name);
|
||||
|> lib.attrsToList
|
||||
|> builtins.map ({
|
||||
name,
|
||||
value,
|
||||
}: {
|
||||
type = value;
|
||||
path = ./. + "/${name}/flake-module.nix";
|
||||
})
|
||||
|> builtins.filter ({
|
||||
type,
|
||||
path,
|
||||
}:
|
||||
type == "directory" && (builtins.pathExists path))
|
||||
|> builtins.map ({path, ...}: path);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue