10 lines
292 B
Nix
10 lines
292 B
Nix
|
{ lib }: rec {
|
||
|
includeDir = dirName:
|
||
|
let
|
||
|
toFilePath = name: value: dirName + ("/" + name);
|
||
|
filterCaches = key: value: value == "regular" && lib.hasSuffix ".nix" key;
|
||
|
in
|
||
|
lib.mapAttrsToList toFilePath
|
||
|
(lib.filterAttrs filterCaches (builtins.readDir dirName));
|
||
|
}
|