mirror of
https://github.com/divnix/digga.git
synced 2024-12-22 23:51:39 +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.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