Skip to content

Commit

Permalink
Filter out nulls from enabledPackages
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Apr 8, 2024
1 parent eb9778d commit 6c2316d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/pre-commit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 6c2316d

Please sign in to comment.