nixos-config/home/bat.nix

26 lines
400 B
Nix
Raw Normal View History

2021-07-29 00:07:33 +02:00
{ config, lib, ... }:
let
2022-01-11 16:08:21 +01:00
inherit (lib)
mkEnableOption
mkIf
;
2021-07-29 00:07:33 +02:00
cfg = config.my.home.bat;
batTheme = config.my.theme.batTheme;
in
{
2022-01-11 16:08:21 +01:00
options.my.home.bat = {
2021-07-29 00:07:33 +02:00
enable = (mkEnableOption "bat code display tool") // { default = true; };
};
2022-01-11 16:08:21 +01:00
config = mkIf cfg.enable {
2021-07-29 00:07:33 +02:00
programs.bat = {
enable = true;
config = {
theme = batTheme.name;
};
};
};
}