Skip to content

Commit

Permalink
modules: let extraPlugins accept null values
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Dec 17, 2024
1 parent 167167e commit 17905de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/output.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 17905de

Please sign in to comment.