lib/modules: init with specialArgs helpers

This commit is contained in:
Matt Sturgeon 2024-08-02 01:26:01 +01:00
parent 491ca5cf51
commit 27c4c9c210
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
9 changed files with 35 additions and 49 deletions

19
lib/modules.nix Normal file
View 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;
}