{ lib, ... }: let modulesDir = ../.; moduleDirs = builtins.readDir modulesDir; excludeDirs = [ "home" "features" ]; dirEntries = lib.filterAttrs (name: type: type == "directory" && !builtins.elem name excludeDirs) moduleDirs; in { options.features.modules = lib.mkOption { type = lib.types.attrs; default = { }; description = "Auto-generated feature module options tree"; }; }