modules: let extraPlugins accept null values

This commit is contained in:
Gaetan Lepage 2024-12-17 18:19:29 +01:00
parent 167167e4b3
commit 17905dec3d

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 {