config/utils/nixFilesIn.nix
2023-03-09 08:33:38 +00:00

3 lines
228 B
Nix

# Modified from http://chriswarbo.net/projects/nixos/useful_hacks.html
lib: dir: map (name: dir + "/${name}") (lib.attrNames (lib.filterAttrs (name: type: type == "regular" && lib.hasSuffix ".nix" name) (builtins.readDir dir)))