From 6c2316d1b2903cecc3692b6b75fdf078e735ebcd Mon Sep 17 00:00:00 2001 From: Sander Date: Mon, 8 Apr 2024 12:29:03 +0000 Subject: [PATCH] Filter out nulls from enabledPackages --- modules/pre-commit.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/pre-commit.nix b/modules/pre-commit.nix index c7c9b9cd..7c068ec9 100644 --- a/modules/pre-commit.nix +++ b/modules/pre-commit.nix @@ -138,7 +138,7 @@ in Useful for including into the developer environment. ''; - default = builtins.map (hook: hook.package) (lib.filter (hook: hook.enable) (builtins.attrValues config.hooks)); + default = builtins.map (hook: hook.package) (lib.filter (hook: hook.enable && hook.package != null) (builtins.attrValues config.hooks)); }; hooks =