mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-03 17:45:03 +02:00
lib: provide an "extended lib" to our modules
lib/extend-lib.nix returns a nixpkg's lib extended with our own helpers. This is exposed as `helpers.extendedLib`, but when evaluating our modules it should be assigned to `specialArgs.lib`. Outside of our modules you must still access our helpers via `config.lib.nixvim` or `config.lib.nixvim.extendedLib`. Within helpers' sub-sections, `lib` is the extended lib.
This commit is contained in:
parent
7c39d77b9f
commit
491ca5cf51
7 changed files with 49 additions and 2 deletions
|
@ -31,6 +31,7 @@ let
|
|||
];
|
||||
specialArgs = {
|
||||
inherit helpers;
|
||||
lib = helpers.extendedLib;
|
||||
defaultPkgs = pkgs;
|
||||
} // extraSpecialArgs;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue