diff --git a/README.md b/README.md index db3e9397..8310dc98 100644 --- a/README.md +++ b/README.md @@ -257,6 +257,7 @@ clang-format = { - [commitizen](https://github.com/commitizen-tools/commitizen) - [gptcommit](https://github.com/zurawiki/gptcommit) - [convco](https://github.com/convco/convco) +- [annex](https://git-annex.branchable.com/) ## Custom hooks diff --git a/modules/hooks.nix b/modules/hooks.nix index 4d49571a..e7bba8ad 100644 --- a/modules/hooks.nix +++ b/modules/hooks.nix @@ -2202,5 +2202,11 @@ in "${pkgs.lychee}/bin/lychee${cmdArgs} ${settings.lychee.flags}"; types = [ "text" ]; }; + + annex = { + name = "annex"; + description = "Runs the git-annex hook for large file support"; + entry = "${tools.git-annex}/bin/git-annex pre-commit"; + }; }; } diff --git a/nix/tools.nix b/nix/tools.nix index e4af6513..212ce185 100644 --- a/nix/tools.nix +++ b/nix/tools.nix @@ -22,6 +22,7 @@ , elmPackages , fprettify , git +, git-annex , gitAndTools , gptcommit ? null , hadolint @@ -94,6 +95,7 @@ in eclint editorconfig-checker fprettify + git-annex go go-tools gptcommit