Bat: set catppuccin-mocha as the theme

This commit is contained in:
Toast 2023-10-23 20:00:24 +02:00
parent 4f5a944834
commit 7505ddccb3
2 changed files with 16 additions and 2 deletions

View file

@ -1,9 +1,23 @@
{ config, ... }: { config, pkgs, ... }:
{ {
home-manager = { home-manager = {
users.toast.programs.bat = { users.toast.programs.bat = {
enable = true; enable = true;
config = {
theme = "catppuccin-mocha";
};
themes = {
catppuccin-mocha = {
src = pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "bat";
rev = "master";
hash = "sha256-6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw=";
};
file = "Catppuccin-mocha.tmTheme";
};
};
}; };
}; };
} }

View file

@ -11,7 +11,7 @@
./bash.nix ./bash.nix
./git.nix ./git.nix
./starship.nix ./starship.nix
,/bat.nix ./bat.nix
]; ];
# Some programs dont have a programs.*.enable option, so I install their package here # Some programs dont have a programs.*.enable option, so I install their package here
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [