add den pattern
This commit is contained in:
18
modules/features/default.nix
Normal file
18
modules/features/default.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{ 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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user