From b568e6d3b8866f1256977fa49fefd12c4a806e86 Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Thu, 11 Jan 2024 18:37:32 +0100 Subject: [PATCH] typos: unset pass_filenames Typos is supposed to run on the whole tree. If this is set to true, the system gets stuck for large projects due to very high memory consumption. The restriction on with files typos run, should be specified in the typos config file. --- modules/hooks.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/hooks.nix b/modules/hooks.nix index ef53d16d..7fc9e2f5 100644 --- a/modules/hooks.nix +++ b/modules/hooks.nix @@ -892,6 +892,7 @@ in type = types.str; description = lib.mdDoc "Path to a custom config file."; default = ""; + example = ".typos.toml"; }; diff = @@ -2153,6 +2154,11 @@ in in "${tools.typos}/bin/typos ${cmdArgs}${lib.optionalString settings.typos.diff " --diff"}${lib.optionalString settings.typos.hidden " --hidden"}"; types = [ "text" ]; + # Typos is supposed to run on the whole tree. If this is set to true, + # the system gets stuck for large projects due to very high memory + # consumption. The restriction on with files typos run, should be + # specified in the typos config file. + pass_filenames = false; }; typstfmt = { name = "typstfmt";