nixos-config/home/bat.nix

21 lines
365 B
Nix
Raw Normal View History

2021-07-29 00:07:33 +02:00
{ 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;
};
};
};
}