19 lines
411 B
Nix
19 lines
411 B
Nix
{ 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";
|
|
};
|
|
}
|