aboutsummaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-06-28 08:22:13 -0700
committerFranck Cuny <franck@fcuny.net>2022-07-02 14:38:12 -0700
commit76580e8954418fcc17fd96d7f91a7bc4616c9314 (patch)
tree5cb4b5c18a00966c91faae6262b9716e752b1896 /home
parentfeat(flake): add pre-commit hooks (diff)
downloadinfra-76580e8954418fcc17fd96d7f91a7bc4616c9314.tar.gz
fix(home/git): install pre-commit tool
The tool `pre-commit' is installed as part of the nix shell for this repository, but not on the host (or in my profile). It means that if I try to make a commit via Emacs/magit, it fails, since it's not in my path. By installing it with home-manager, it's in the path, and it can be used by magit when creating a commit. Change-Id: Ifa61d0be1027043eecaf11dd40fbba1ed2f5a9a6 Reviewed-on: https://cl.fcuny.net/c/world/+/591 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
Diffstat (limited to 'home')
-rw-r--r--home/git/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/home/git/default.nix b/home/git/default.nix
index 7ec9dcc..fc368f7 100644
--- a/home/git/default.nix
+++ b/home/git/default.nix
@@ -62,6 +62,6 @@ in
];
};
xdg.dataFile."git/commit.template" = { source = ./commit.template; };
- home.packages = with pkgs; [ tools.git-blame-stats ];
+ home.packages = with pkgs; [ tools.git-blame-stats gitAndTools.pre-commit ];
};
}