commit | f1d6e992b5168249402e98e441ccc0e3d150fa2b | [log] [tgz] |
---|---|---|
author | Samuel Shuert <coded@clicks.codes> | Fri Nov 24 17:28:33 2023 -0500 |
committer | Samuel Shuert <coded@clicks.codes> | Fri Dec 01 22:11:32 2023 -0500 |
tree | 26cb2ed2ff6749c911d0946149620fb9db83769b |
initial commit Change-Id: Icdf87c6c68d88c917468ad949f90af5bcb690831
diff --git a/utils/nixFilesIn.nix b/utils/nixFilesIn.nix new file mode 100644 index 0000000..c3ff263 --- /dev/null +++ b/utils/nixFilesIn.nix
@@ -0,0 +1,4 @@ +lib: dir: +map (name: dir + "/${name}") (lib.attrNames + (lib.filterAttrs (name: type: type == "regular" && lib.hasSuffix ".nix" name) + (builtins.readDir dir)))