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

22 lines
320 B
Nix

{
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;
catppuccin.enable = true;
};
};
}