From ec7357012079ede7b557eca211ef8512bff1e73c Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Thu, 23 Apr 2026 04:29:41 +0530 Subject: added theme configuration for bat --- modules/tools/bat/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'modules/tools/bat/default.nix') diff --git a/modules/tools/bat/default.nix b/modules/tools/bat/default.nix index 4e575b8..1bfdb61 100644 --- a/modules/tools/bat/default.nix +++ b/modules/tools/bat/default.nix @@ -1,10 +1,11 @@ { config, lib, + pkgs, ... }: -# Bluetui - Terminal UI for Bluetooth management +# bat - a cat clone with wings { options.tools.bat = { enable = lib.mkEnableOption "Enables bat."; @@ -13,6 +14,18 @@ config = lib.mkIf config.tools.bat.enable { programs.bat = { enable = true; + config = { + theme = "base16"; + }; + themes = { + base16 = { + src = pkgs.runCommand "bat-base16-theme" { } '' + mkdir -p $out + cp ${config.scheme { template = ./base16.mustache.tmTheme; }} $out/base16.tmTheme + ''; + file = "base16.tmTheme"; + }; + }; }; }; } -- cgit v1.2.3