mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-24 04:35:08 +02:00
lib/modules: init with specialArgs
helpers
This commit is contained in:
parent
491ca5cf51
commit
27c4c9c210
9 changed files with 35 additions and 49 deletions
19
lib/modules.nix
Normal file
19
lib/modules.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
helpers,
|
||||
}:
|
||||
rec {
|
||||
# Minimal specialArgs required to evaluate nixvim modules
|
||||
specialArgs = specialArgsWith { };
|
||||
|
||||
# Build specialArgs for evaluating nixvim modules
|
||||
specialArgsWith =
|
||||
extraSpecialArgs:
|
||||
{
|
||||
# TODO: deprecate `helpers`
|
||||
inherit lib helpers;
|
||||
defaultPkgs = pkgs;
|
||||
}
|
||||
// extraSpecialArgs;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue