feat: make lib a dynamic arg

This commit is contained in:
Jake Hamilton 2024-06-08 05:23:33 -07:00
parent e015170e78
commit 135bd39ef1
Signed by: jakehamilton
GPG key ID: 9762169A1B35EA68
2 changed files with 4 additions and 2 deletions

View file

@ -3,7 +3,7 @@
"lib": { "lib": {
"locked": { "locked": {
"lastModified": 1, "lastModified": 1,
"narHash": "sha256-TjsTWJP2N/G0o5ca4v6ooGYHMydtvKf52xnHn4DzZTQ=", "narHash": "sha256-nJ4WxMYE8OFaW6EhJDULMaBaTtXiVtR/MhIvZ4BMqbU=",
"path": "../lib", "path": "../lib",
"type": "path" "type": "path"
}, },

View file

@ -594,6 +594,8 @@ lib: {
meta = { meta = {
inherit extend type; inherit extend type;
}; };
lib = lib.modules.overrides.default lib;
}; };
}; };
}; };
@ -605,7 +607,7 @@ lib: {
collect collect
(args.path or "") (args.path or "")
(modules ++ [internal]) (modules ++ [internal])
({inherit lib options config;} // args); ({inherit options config;} // args);
in in
lib.modules.combine prefix (lib.lists.reverse collected); lib.modules.combine prefix (lib.lists.reverse collected);