NixFiles/utils/nixFilesIn.nix

3 lines
228 B
Nix
Raw Normal View History

2023-04-09 12:56:40 +01:00
# 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)))