1
0
forked from clan/clan-core
clan-core/lib/default.nix

17 lines
378 B
Nix
Raw Normal View History

{ lib, ... }:
{
findNixFiles = folder:
lib.mapAttrs'
(name: type:
if
type == "directory"
then
lib.nameValuePair name "${folder}/${name}"
else
lib.nameValuePair (lib.removeSuffix ".nix" name) "${folder}/${name}"
)
(builtins.readDir folder);
jsonschema = import ./jsonschema.nix { inherit lib; };
}