flake: add typos pre-commit check

This commit is contained in:
Felix Buehler 2023-06-24 17:24:42 +02:00
parent 8304d9872f
commit 92b76ecfd6

View file

@ -70,6 +70,10 @@
hooks = { hooks = {
shellcheck.enable = true; shellcheck.enable = true;
nixpkgs-fmt.enable = true; nixpkgs-fmt.enable = true;
typos = {
enable = true;
excludes = [ "secrets\\.yaml" ];
};
}; };
}; };
@ -81,6 +85,7 @@
# formatters # formatters
pkgs.shellcheck pkgs.shellcheck
pkgs.nixpkgs-fmt pkgs.nixpkgs-fmt
pkgs.typos
]; ];
shellHook = '' shellHook = ''
${config.pre-commit.installationScript} ${config.pre-commit.installationScript}