forked from Zynh0722/permafrost
14 lines
319 B
Nix
14 lines
319 B
Nix
|
{ lib, ... }:
|
||
|
|
||
|
let
|
||
|
dirEntries = builtins.removeAttrs (builtins.readDir ./.) [ "default.nix" ];
|
||
|
moduleEntries = lib.attrsets.filterAttrs (n: v: v == "regular") dirEntries;
|
||
|
moduleNames = builtins.attrNames moduleEntries;
|
||
|
|
||
|
modulePaths = builtins.map (name: ./${name}) moduleNames;
|
||
|
in
|
||
|
{
|
||
|
imports = modulePaths;
|
||
|
}
|
||
|
|