1
1
mirror of https://github.com/divnix/digga.git synced 2024-10-03 18:17:08 +03:00

📝 devos: clarify how to use /lib/

This commit is contained in:
Producer Matt 2023-01-25 00:01:18 -06:00
parent bca4b89f49
commit 4ef9b27778

View File

@ -1,2 +1,12 @@
{lib}:
lib.makeExtensible (self: {})
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"
})