2024-05-23 20:26:30 +00:00
|
|
|
{
|
|
|
|
|
options,
|
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
...
|
|
|
|
|
}:
|
|
|
|
|
with lib;
|
|
|
|
|
with lib.custom; let
|
|
|
|
|
cfg = config.apps.term.kitty;
|
|
|
|
|
in {
|
|
|
|
|
options.apps.term.kitty = with types; {
|
|
|
|
|
enable = mkBoolOpt false "Enable Kitty Term";
|
2024-05-26 18:53:23 -04:00
|
|
|
|
|
|
|
|
fonts = {
|
|
|
|
|
normal = mkStringOpt "Zed Mono Bold" "Normal Font";
|
2024-05-26 19:34:26 -04:00
|
|
|
bold = mkStringOpt "Zed Mono ExtraBold" "Bold Font";
|
2024-05-26 18:53:23 -04:00
|
|
|
italic = mkStringOpt "Zed Mono Bold Italic" "Italic Font";
|
2024-05-26 19:34:26 -04:00
|
|
|
bold_italic = mkStringOpt "Zed Mono ExtraBold Italic" "Bold Italic Font";
|
2024-05-26 18:53:23 -04:00
|
|
|
};
|
2024-05-23 20:26:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
|
programs.kitty = {
|
|
|
|
|
enable = true;
|
|
|
|
|
font = {
|
2024-05-26 18:53:23 -04:00
|
|
|
name = cfg.fonts.normal;
|
2024-05-23 20:26:30 +00:00
|
|
|
size = 14;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extraConfig = ''
|
2024-05-26 18:53:23 -04:00
|
|
|
bold_font ${cfg.fonts.bold}
|
|
|
|
|
italic_font ${cfg.fonts.italic}
|
|
|
|
|
bold_italic_font ${cfg.fonts.bold_italic}
|
2024-05-23 20:26:30 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
catppuccin.enable = true;
|
|
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
|
window_padding_width = 12;
|
|
|
|
|
background_opacity = "0.8";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|