lib/modules: work-around a submodule type-merging issue

Includes a regression test.

Revert "lib/modules: remove explicit `specialArgs.lib`"

This reverts commit b5efe91c52.
This commit is contained in:
Matt Sturgeon 2025-01-21 12:05:11 +00:00
parent 77c78bd04e
commit 53bfadc2c2
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
3 changed files with 61 additions and 0 deletions

View file

@ -44,6 +44,9 @@ in
})
];
specialArgs = {
# NOTE: we shouldn't have to set `specialArgs.lib`,
# however see https://github.com/nix-community/nixvim/issues/2879
inherit lib;
modulesPath = ../modules;
# TODO: deprecate `helpers`
helpers = self;