2023-01-28 20:49:10 +00:00
|
|
|
{lib}:
|
2023-03-27 11:35:59 +00:00
|
|
|
lib.makeExtensible (self: let
|
|
|
|
callLibs = file: import file {lib = self;};
|
|
|
|
in rec {
|
|
|
|
## Define your own library functions here!
|
|
|
|
#id = x: x;
|
|
|
|
## Or in files, containing functions that take {lib}
|
|
|
|
#foo = callLibs ./foo.nix;
|
|
|
|
## In configs, they can be used under "lib.our"
|
|
|
|
})
|