From 17905dec3d08062dc8358b86a95058be4c71cc35 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 17 Dec 2024 18:19:29 +0100 Subject: [PATCH] modules: let extraPlugins accept null values --- modules/output.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/output.nix b/modules/output.nix index d2d221a416..9e4f3309c9 100644 --- a/modules/output.nix +++ b/modules/output.nix @@ -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 {