1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
{ config, pkgs, lib, ... }: with lib; let out = { options.krebs.lib = api; config = imp; }; api = mkOption { default = {}; type = types.attrs; }; imp = { krebs.lib = lib // import ../4lib { inherit config lib; } // builtins; }; in out