{
  config,
  lib,
  ...
}:
{
  config = lib.mkIf config.patagia.desktop.enable {
    programs.wezterm = {
      enable = true;
      colorSchemes = {
        patagiaLight = {
          ansi = [
            "#222222"
            "#D14949"
            "#48874F"
            "#AFA75A"
            "#599797"
            "#8F6089"
            "#5C9FA8"
            "#8C8C8C"
          ];
          brights = [
            "#444444"
            "#FF6D6D"
            "#89FF95"
            "#FFF484"
            "#97DDFF"
            "#FDAAF2"
            "#85F5DA"
            "#E9E9E9"
          ];
          background = "#fefeff";
          foreground = "#222222";
          cursor_bg = "#aa0000";
          cursor_border = "#aa0000";
          cursor_fg = "#1B1B1B";
          selection_bg = "#ffe6a4";
          selection_fg = "#483600";
        };
      };

      extraConfig = ''
        return {
          font = wezterm.font("Berkeley Mono"),
          font_size = 15,
          freetype_load_target = "HorizontalLcd",
          color_scheme = "patagiaLight",
          xcursor_theme = "Adwaita",
          check_for_updates = false,
          custom_block_glyphs = false,
          allow_square_glyphs_to_overflow_width = "Always",

        }
      '';

    };
  };
}