dotfiles/modules/home/apps/bat/default.nix

22 lines
325 B
Nix
Raw Normal View History

{
config,
lib,
namespace,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.${namespace}.apps.bat;
in {
options.${namespace}.apps.bat = {
enable = mkEnableOption "bat";
};
config = mkIf cfg.enable {
programs.bat = {
enable = true;
config.theme = "gruvbox-dark";
};
};
}