Set bat theme to match system theme

Previously bat always used a dark theme, which was often difficult or
impossible to read on light themes such as Catppuccin Latte. Selecting
this in a theme-dependent way makes. Bat usable on light themes

Change-Id: Ife7670ab477a7683dbd86fe375eb82853f7bc1b3
Reviewed-on: https://git.clicks.codes/c/Chimera/NixFiles/+/623
Reviewed-by: Samuel Shuert <coded@clicks.codes>
Tested-by: Samuel Shuert <coded@clicks.codes>
diff --git a/modules/home/shell/default.nix b/modules/home/shell/default.nix
index 5226576..bdfa4c0 100644
--- a/modules/home/shell/default.nix
+++ b/modules/home/shell/default.nix
@@ -92,6 +92,10 @@
       cat = lib.mkIf config.chimera.shell.replacements.bat.enable "${pkgs.bat}/bin/bat";
     };
 
+    home.sessionVariables = lib.mkIf (config.chimera.shell.usefulPackages.enable && config.chimera.theme.style == "Light") {
+      BAT_THEME = "OneHalfLight";
+    };
+
     programs.atuin = lib.mkIf config.chimera.shell.replacements.atuin.enable {
       enable = true;
       enableZshIntegration = config.chimera.shell.zsh.enable;
@@ -133,6 +137,7 @@
         if config.chimera.shell.usefulPackages.enable then
           [
             pkgs.wget
+            pkgs.bat
             pkgs.curl
             pkgs.curlie
             pkgs.pv
@@ -147,7 +152,6 @@
       ++ (if config.chimera.shell.replacements.bfs.enable then [ pkgs.bfs ] else [ ])
       ++ (if config.chimera.shell.replacements.htop.enable then [ pkgs.htop ] else [ ])
       ++ (if config.chimera.shell.replacements.erdtree.enable then [ pkgs.erdtree ] else [ ])
-      ++ (if config.chimera.shell.replacements.dust.enable then [ pkgs.dust ] else [ ])
-      ++ (if config.chimera.shell.replacements.bat.enable then [ pkgs.bat ] else [ ]);
+      ++ (if config.chimera.shell.replacements.dust.enable then [ pkgs.dust ] else [ ]);
   };
 }