Skip to content

Commit 1e849ba

Browse files
committed
.
1 parent bad175b commit 1e849ba

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

modules/hooks.nix

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2903,25 +2903,25 @@ in
29032903
# [0]: https://github.com/cachix/pre-commit-hooks.nix/pull/387#issuecomment-1893600631
29042904
configAsFile =
29052905
# Highest precedence.
2906-
if settings.typos.configFile != null
2907-
then (toString settings.typos.configFile)
2906+
if hooks.typos.settings.configFile != null
2907+
then (toString hooks.typos.settings.configFile)
29082908
# Secondary precedence.
2909-
else if settings.typos.configPath != ""
2910-
then settings.typos.configPath
2909+
else if hooks.typos.settings.configPath != ""
2910+
then hooks.typos.settings.configPath
29112911
# Lowest precedence.
29122912
else
29132913
builtins.toFile "config.toml"
29142914
# Concatenate config in config file with section for ignoring words
29152915
# generated from list of words to ignore
2916-
("${settings.typos.config}" +
2917-
lib.strings.optionalString (settings.typos.ignored-words != [ ]) "\n\[default.extend-words\]" +
2918-
lib.strings.concatMapStrings (x: "\n${x} = \"${x}\"") settings.typos.ignored-words
2916+
("${hooks.typos.settings.config}" +
2917+
lib.strings.optionalString (hooks.typos.settings.ignored-words != [ ]) "\n\[default.extend-words\]" +
2918+
lib.strings.concatMapStrings (x: "\n${x} = \"${x}\"") hooks.typos.settings.ignored-words
29192919
)
29202920
;
29212921
# If the config file path is passed as Nix string and not as Nix
29222922
# Path, we can't read it from Nix, unfortunately.
29232923
excludesFromConfig =
2924-
if settings.typos.configPath == "" # passed directly or as Path
2924+
if hooks.typos.settings.configPath == "" # passed directly or as Path
29252925
then
29262926
(
29272927
let

0 commit comments

Comments
 (0)