home: add bat config

This commit is contained in:
Antoine Martin 2021-07-29 00:07:33 +02:00
parent 2718be6ac9
commit 270809ca25
7 changed files with 40 additions and 2 deletions

20
home/bat.nix Normal file
View file

@ -0,0 +1,20 @@
{ config, lib, ... }:
let
cfg = config.my.home.bat;
batTheme = config.my.theme.batTheme;
in
{
options.my.home.bat = with lib; {
enable = (mkEnableOption "bat code display tool") // { default = true; };
};
config = lib.mkIf cfg.enable {
programs.bat = {
enable = true;
config = {
theme = batTheme.name;
};
};
};
}