Add pre-commit
diff --git a/flake.nix b/flake.nix
index a90cc54..c3936cb 100644
--- a/flake.nix
+++ b/flake.nix
@@ -16,6 +16,10 @@
url = "github:Aloxaf/fzf-tab";
flake = false;
};
+ git-confirm = {
+ url = "github:pimterry/git-confirm";
+ flake = false;
+ };
# Make sure flakes we depend on use the same version of nixpkgs as we do
home-manager.inputs.nixpkgs.follows = "nixpkgs";
diff --git a/src/apps/personal/git.nix b/src/apps/personal/git.nix
index cd27987..a6248cb 100644
--- a/src/apps/personal/git.nix
+++ b/src/apps/personal/git.nix
@@ -1,4 +1,4 @@
-{ pkgs, ... }: {
+{ pkgs, git-confirm, ... }: {
programs.git = {
enable = true;
@@ -31,6 +31,8 @@
};
};
+ home.file.".config/git/hooks/pre-commit".source = "${git-confirm}/hook.sh";
+
home.packages = [
pkgs.git-review
];