summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/hm/sils/bat.nix21
-rw-r--r--modules/hm/sils/default.nix1
2 files changed, 22 insertions, 0 deletions
diff --git a/modules/hm/sils/bat.nix b/modules/hm/sils/bat.nix
new file mode 100644
index 0000000..5f7b967
--- /dev/null
+++ b/modules/hm/sils/bat.nix
@@ -0,0 +1,21 @@
+{
+  config,
+  lib,
+  pkgs,
+  ...
+}: let
+  cfg = config.sils.bat;
+in {
+  options.sils.bat.enable = lib.mkEnableOption "bat";
+  config = lib.mkIf cfg.enable {
+    programs.bat = {
+      enable = true;
+      extraPackages = with pkgs.bat-extras; [
+        batdiff
+        batman
+        batgrep
+        batwatch
+      ];
+    };
+  };
+}
diff --git a/modules/hm/sils/default.nix b/modules/hm/sils/default.nix
index c298715..fc0893f 100644
--- a/modules/hm/sils/default.nix
+++ b/modules/hm/sils/default.nix
@@ -1,5 +1,6 @@
 {...}: {
   imports = [
+    ./bat.nix
     ./firefox
     ./jameica.nix
     ./mail.nix