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:
Matt Sturgeon 2024-12-21 12:58:33 +00:00
parent aefab28b3b
commit 472526d7aa
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -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);
}