2024-03-20 18:33:33 +01:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2024-02-05 11:46:52 +01:00
|
|
|
with lib;
|
|
|
|
let
|
2022-03-01 22:19:03 +01:00
|
|
|
cfg = config.eboskma.programs.bat;
|
2022-04-27 00:21:19 +02:00
|
|
|
in
|
|
|
|
{
|
2021-11-21 19:07:12 +01:00
|
|
|
options.eboskma.programs.bat = {
|
|
|
|
enable = mkEnableOption "enable bat";
|
|
|
|
};
|
|
|
|
|
2022-05-03 18:17:38 +02:00
|
|
|
config = mkIf cfg.enable {
|
2021-11-21 19:07:12 +01:00
|
|
|
programs.bat = {
|
|
|
|
enable = true;
|
2024-03-20 18:33:33 +01:00
|
|
|
themes = {
|
|
|
|
catppuccin = {
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "catppuccin";
|
|
|
|
repo = "bat";
|
|
|
|
rev = "b19bea35a85a32294ac4732cad5b0dc6495bed32";
|
2024-07-09 21:32:01 +02:00
|
|
|
hash = "sha256-POoW2sEM6jiymbb+W/9DKIjDM1Buu1HAmrNP0yC2JPg=";
|
2024-03-20 18:33:33 +01:00
|
|
|
};
|
|
|
|
file = "themes/Catppuccin Mocha.tmTheme";
|
|
|
|
};
|
|
|
|
};
|
2021-11-21 19:07:12 +01:00
|
|
|
config = {
|
2024-03-20 18:33:33 +01:00
|
|
|
theme = "catppuccin";
|
2021-11-21 19:07:12 +01:00
|
|
|
pager = "less -FR";
|
2024-02-05 11:46:52 +01:00
|
|
|
map-syntax = [ "*.heex:HTML (EEx)" ];
|
2021-11-21 19:07:12 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|