checkpoint

This commit is contained in:
Chris Kruining 2026-03-31 15:43:34 +02:00
parent cb30a0ba8b
commit cc86b0a815
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
59 changed files with 834 additions and 123 deletions

View file

@ -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);
}