diff options
| author | Arpit Chakladar <arpitchakladar@proton.me> | 2026-04-23 04:29:41 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@proton.me> | 2026-04-23 04:29:41 +0530 |
| commit | ec7357012079ede7b557eca211ef8512bff1e73c (patch) | |
| tree | 90e4059b6b8f96b1232a3567b43cf3f436fe6f89 /modules/tools/bat/default.nix | |
| parent | 2b088f7b2a9b8d037debdfa6aff8856be845bf2a (diff) | |
| download | home-manager-config-ec7357012079ede7b557eca211ef8512bff1e73c.tar.gz home-manager-config-ec7357012079ede7b557eca211ef8512bff1e73c.zip | |
added theme configuration for bat
Diffstat (limited to 'modules/tools/bat/default.nix')
| -rw-r--r-- | modules/tools/bat/default.nix | 15 |
1 files changed, 14 insertions, 1 deletions
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"; + }; + }; }; }; } |
