default.nix (404B)
1 { lib, ... }: 2 # Directory library functions 3 4 with lib; 5 6 let 7 dirs = import ./dirs.nix { inherit lib; }; 8 9 files = filterAttrs (name: value: name != "default.nix") (dirs.mapOnDirRec ./. 10 # a will be "regular" on a file and "directory" on a directory 11 (name: a: 12 let path = "${toString ./.}/${name}"; in 13 import path { inherit lib; } 14 )); 15 in 16 foldAttrs (n: a: n) [ ] (attrValues files)