{ pkgs, ... }:
let
  theme = import ../../../../lib/theme { inherit pkgs; };
in
{
  programs.alacritty = {
    enable = true;
    settings = {
      env = {
        TERM = "alacritty";
      };

      window = {
        padding = {
          x = 20;
          y = 20;
        };
      };

      general.live_config_reload = true;
      scrolling.history = 100000;

      font = {
        normal.family = "${theme.fonts.monospace.name}";
        size = 14;
      };
    };
  };

  catppuccin.alacritty.enable = true;
}
