bat catppuccin themes

This commit is contained in:
Ivan Kirilov Dimitrov 2024-08-02 09:29:07 +02:00
parent 38b4664e6f
commit 98fec7c447
No known key found for this signature in database
GPG Key ID: 0BDAD4B211C49294

View File

@ -49,7 +49,7 @@ toplevel@{ moduleWithSystem, ... }: {
perSystem@{ pkgs, config, ... }: {
home = {
packages = with pkgs; [ openssl mlocate uutils-coreutils-noprefix speedtest-cli ];
sessionVariables = { PAGER = "bat"; BAT_THEME = "1337"; };
sessionVariables = { PAGER = "bat"; BAT_THEME = "catppuccin-mocha"; };
};
programs = {
password-store = { enable = true; package = pkgs.pass.withExtensions (e: with e; [ pass-otp pass-file ]); settings = { PASSWORD_STORE_DIR = "${config.home.homeDirectory}/.password-store"; }; };
@ -75,7 +75,19 @@ toplevel@{ moduleWithSystem, ... }: {
};
};
fzf = { enable = true; enableBashIntegration = true; enableZshIntegration = true; };
bat.enable = true;
bat = {
enable = true;
themes =
let
catppuccin = pkgs.fetchFromGitHub { owner = "catppuccin"; repo = "bat"; rev = "82e7ca555f805b53d2b377390e4ab38c20282e83"; sha256 = "sha256-/Ob9iCVyjJDBCXlss9KwFQTuxybmSSzYRBZxOT10PZg="; };
in
{
catppuccin-mocha = { src = catppuccin; file = "themes/Catppuccin Mocha.tmTheme"; };
catppuccin-macchiato = { src = catppuccin; file = "themes/Catppuccin Macchiato.tmTheme"; };
catppuccin-frappe = { src = catppuccin; file = "themes/Catppuccin Frappe.tmTheme"; };
catppuccin-latte = { src = catppuccin; file = "themes/Catppuccin Latte.tmTheme"; };
};
};
ssh.enable = true;
gpg.enable = true;
};