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

View file

@ -3,7 +3,7 @@
config,
options,
lib,
helpers,
specialArgs,
...
}:
let
@ -11,10 +11,7 @@ let
fileModuleType = types.submoduleWith {
shorthandOnlyDefinesConfig = true;
specialArgs = {
inherit helpers;
defaultPkgs = pkgs;
};
inherit specialArgs;
# Don't include the modules in the docs, as that'd be redundant
modules = lib.optionals (!config.isDocs) [
../../.