mirror of
https://github.com/divnix/digga.git
synced 2024-12-23 08:02:21 +03:00
Merge pull request #499 from ProducerMatt/lib-notes
📝 devos: clarify how to use /lib/
This commit is contained in:
commit
0595ae70cd
@ -1,2 +1,12 @@
|
|||||||
{lib}:
|
{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"
|
||||||
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user