mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-12-18 18:01:17 +00:00
lazy: allow null package
This commit is contained in:
parent
8c95b996c7
commit
c4ba376478
2 changed files with 3 additions and 3 deletions
|
|
@ -76,7 +76,7 @@
|
||||||
};
|
};
|
||||||
lznSpecs = mapAttrsToList toLuaLznSpec cfg.plugins;
|
lznSpecs = mapAttrsToList toLuaLznSpec cfg.plugins;
|
||||||
|
|
||||||
pluginPackages = mapAttrsToList (_: plugin: plugin.package) cfg.plugins;
|
pluginPackages = filter (x: x != null) (mapAttrsToList (_: plugin: plugin.package) cfg.plugins);
|
||||||
|
|
||||||
specToNotLazyConfig = _: spec: ''
|
specToNotLazyConfig = _: spec: ''
|
||||||
do
|
do
|
||||||
|
|
|
||||||
|
|
@ -66,8 +66,8 @@
|
||||||
lznPluginType = submodule {
|
lznPluginType = submodule {
|
||||||
options = {
|
options = {
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
type = pluginType;
|
type = nullOr pluginType;
|
||||||
description = "Plugin package";
|
description = "Plugin package. If null, a custom load function must be provided";
|
||||||
};
|
};
|
||||||
|
|
||||||
setupModule = mkOption {
|
setupModule = mkOption {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue