aboutsummaryrefslogtreecommitdiffstats
path: root/modules/tools/bat/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/tools/bat/default.nix')
-rw-r--r--modules/tools/bat/default.nix15
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";
+ };
+ };
};
};
}