aboutsummaryrefslogtreecommitdiffstats
path: root/modules/hm/sils/bat.nix
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2024-04-21 17:54:18 +0200
committerSilas Schöffel <sils@sils.li>2024-04-22 17:12:55 +0200
commit960c950b43fb2a9c33af9a23e7569e30c00dabbe (patch)
tree4c63fa1e462a2f88cfba8cf464bc3fca38083d8e /modules/hm/sils/bat.nix
parenthm: consume zathura module (diff)
downloadnix-config-960c950b43fb2a9c33af9a23e7569e30c00dabbe.zip
bat: move to module
Diffstat (limited to 'modules/hm/sils/bat.nix')
-rw-r--r--modules/hm/sils/bat.nix21
1 files changed, 21 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
+ ];
+ };
+ };
+}