modules: let extraPlugins accept null values

This commit is contained in:
Gaetan Lepage
2024-12-17 22:46:34 +01:00
parent 167167e4b3
commit 17905dec3d
+2 -1
View File
@@ -29,9 +29,10 @@ in
{
options = {
extraPlugins = mkOption {
type = with types; listOf (either package pluginWithConfigType);
type = with types; listOf (nullOr (either package pluginWithConfigType));
default = [ ];
description = "List of vim plugins to install";
apply = builtins.filter (p: p != null);
};
extraPackages = mkOption {