Common/bat: use catppuccin module

This commit is contained in:
Toast 2024-04-09 10:54:22 +02:00 committed by Toast
parent 317aa3800a
commit 72a94a71c1

View file

@ -1,25 +1,8 @@
{
config,
pkgs,
...
}: let
themeName =
if config.system.nixos.release == "23.11"
then "Catppuccin-mocha"
else "Catppuccin Mocha";
in {
{...}: {
home-manager = {
users.toast.programs.bat = {
enable = true;
config = {
theme = "catppuccin-mocha";
};
themes = {
catppuccin-mocha = {
src = pkgs.catppuccin;
file = "bat/${themeName}.tmTheme";
};
};
catppuccin.enable = true;
};
};
}