From b0d266d0504ef6737fb575f1b4f6995629cb979c Mon Sep 17 00:00:00 2001 From: Szymon P Date: Fri, 20 Feb 2026 13:51:43 +0100 Subject: [PATCH] add bat config --- home.nix | 1 + modules/bat.nix | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 modules/bat.nix diff --git a/home.nix b/home.nix index 87bd2c9..b8e3fd0 100644 --- a/home.nix +++ b/home.nix @@ -23,6 +23,7 @@ ./modules/zoxide.nix ./modules/mako.nix ./modules/ssh.nix + ./modules/bat.nix ]; home.stateVersion = "25.11"; # Please read the comment before changing. diff --git a/modules/bat.nix b/modules/bat.nix new file mode 100644 index 0000000..646fb7e --- /dev/null +++ b/modules/bat.nix @@ -0,0 +1,24 @@ +{ pkgs, ... }: + +{ + programs.bat = { + enable = true; + + config = { + theme = "cattpuccin-mocha"; + }; + + themes = { + catppuccin-mocha = { + src = pkgs.fetchFromGitHub { + owner = "catppuccin"; + repo = "bat"; + rev = "6810349b28055dce54076712fc05fc68da4b8ec0"; + hash = "sha256-lJapSgRVENTrbmpVyn+UQabC9fpV1G1e+CdlJ090uvg="; + + }; + file = "themes/Catppuccin Mocha.tmTheme"; + }; + }; + }; +}