Putting aside that blanket statement, that just makes no sense whatsoever. You use Nix to generate pre-commit configuration. That configuration contains unique paths to linters. Those paths will always point to an identical build of a Nix package, ensuring consistency. There's no room for Nix to slow down the pre-commit hook, because it doesn't run during the execution of the hook at all.