mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
wrappers: extract nixvim-lib from extended lib
Use the overridden nixivim-lib from the overlayed/extended nixpkgs lib. This ensures consistency between `nixvimLib.nixvim` and `config.lib.nixvim.`
This commit is contained in:
parent
aefab28b3b
commit
472526d7aa
1 changed files with 3 additions and 3 deletions
|
@ -59,9 +59,9 @@ in
|
|||
config = mkMerge [
|
||||
{
|
||||
# Make our lib available to the host modules
|
||||
lib.nixvim = lib.mkDefault self.lib.nixvim;
|
||||
|
||||
# Make nixvim's "extended" lib available to the host's module args
|
||||
# - the `config.lib.nixvim` option is the nixvim-lib
|
||||
# - the `nixvimLib` arg is `lib` extended with our overlay
|
||||
lib.nixvim = lib.mkDefault config._module.args.nixvimLib.nixvim;
|
||||
_module.args.nixvimLib = lib.mkDefault (lib.extend self.lib.overlay);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue