Add stg to git options

I've used stg enough to know that I love the workflow, and would like
to share it with the "wider chimera userbase". Therefore, making it an
enable option on git makes sense, as a tool to augment your git
experience. It may be worth doing the same for other tools like
gitbutler (as soon as there is a gitbutler nixpkg, which is expected
this weekend)

Change-Id: Ie763981becd93cf345f19f5c2e63f0566dbfd083
Reviewed-on: https://git.clicks.codes/c/Chimera/NixFiles/+/396
Reviewed-by: Samuel Shuert <coded@clicks.codes>
Tested-by: Skyler Grey <minion@clicks.codes>
diff --git a/homes/x86_64-linux/minion@greylag/default.nix b/homes/x86_64-linux/minion@greylag/default.nix
index f8f54d0..7e06aea 100644
--- a/homes/x86_64-linux/minion@greylag/default.nix
+++ b/homes/x86_64-linux/minion@greylag/default.nix
@@ -23,8 +23,6 @@
     greylag
   '';
 
-  home.packages = [ pkgs.stgit ];
-
   chimera = {
     hyprland.enable = true;
     hyprland.hyprpaper.splash.enable = true;
@@ -94,6 +92,7 @@
 
     git = {
       delta.enable = true;
+      stgit.enable = true;
       gitReview.enable = true;
       auth.clicksUsername = "minion";
     };
diff --git a/modules/home/git/default.nix b/modules/home/git/default.nix
index 8f91720..5aaf529 100644
--- a/modules/home/git/default.nix
+++ b/modules/home/git/default.nix
@@ -8,6 +8,7 @@
   options.chimera.git = {
     gitReview.enable = lib.mkEnableOption "Enable git review";
     delta.enable = lib.mkEnableOption "Enable delta, an alternative pager for git diffs that highlights syntax";
+		stgit.enable = lib.mkEnableOption "Install StGit, a tool that makes working with stacked patches easier";
     auth = {
       clicksUsername = lib.mkOption {
         type = lib.types.str;
@@ -18,7 +19,9 @@
 
   config = {
 
-    home.packages = (if config.chimera.git.gitReview.enable then [ pkgs.git-review ] else [ ]);
+    home.packages =
+			(if config.chimera.git.gitReview.enable then [ pkgs.git-review ] else [ ]) ++
+			(if config.chimera.git.stgit.enable then [ pkgs.stgit ] else [ ]);
 
     programs.zsh.shellAliases =
       if config.chimera.git.gitReview.enable then { "gr!" = "git review"; } else { };