kitty: move macos fonts to module

This commit is contained in:
Zynh Ludwig 2024-12-06 12:23:33 -08:00
parent 0f4fe1501b
commit 756cfaa3a8
2 changed files with 21 additions and 14 deletions

View file

@ -14,17 +14,28 @@ in
enable = true; enable = true;
shellIntegration.enableFishIntegration = true; shellIntegration.enableFishIntegration = true;
settings = { settings =
let
macos_fonts = {
font_family = lib.mkForce "family=\"JetBrainsMono Nerd Font Mono\" style=\"Light\"";
bold_font = lib.mkForce "family=\"JetBrainsMono Nerd Font Mono\" style=\"Regular\"";
italic_font = lib.mkForce "family=\"JetBrainsMono Nerd Font Mono\" style=\"Light Italic\"";
bold_italic_font = lib.mkForce "family=\"JetBrainsMono Nerd Font Mono\" style=\"Regular Italic\"";
};
linux_fonts = {
font_family = "family=\"JetBrainsMono Nerd Font\" style=\"ExtraLight\""; font_family = "family=\"JetBrainsMono Nerd Font\" style=\"ExtraLight\"";
bold_font = "family=\"JetBrainsMono Nerd Font\" style=\"Light\""; bold_font = "family=\"JetBrainsMono Nerd Font\" style=\"Light\"";
italic_font = "family=\"JetBrainsMono Nerd Font\" style=\"ExtraLight Italic\""; italic_font = "family=\"JetBrainsMono Nerd Font\" style=\"ExtraLight Italic\"";
bold_italic_font = "family=\"JetBrainsMono Nerd Font\" style=\"Light Italic\""; bold_italic_font = "family=\"JetBrainsMono Nerd Font\" style=\"Light Italic\"";
};
in
{
background = "#050505"; background = "#050505";
background_opacity = 0.98; background_opacity = 0.98;
font_size = 12; font_size = 12;
# allow_remote_control = "yes"; # allow_remote_control = "yes";
}; } // (if !macos then linux_fonts else macos_fonts);
extraConfig = extraConfig =
let let

View file

@ -40,10 +40,6 @@
# ''; # '';
programs.kitty.settings = { programs.kitty.settings = {
font_family = lib.mkForce "family=\"JetBrainsMono Nerd Font Mono\" style=\"Light\"";
bold_font = lib.mkForce "family=\"JetBrainsMono Nerd Font Mono\" style=\"Regular\"";
italic_font = lib.mkForce "family=\"JetBrainsMono Nerd Font Mono\" style=\"Light Italic\"";
bold_italic_font = lib.mkForce "family=\"JetBrainsMono Nerd Font Mono\" style=\"Regular Italic\"";
background_opacity = lib.mkForce 0.94; background_opacity = lib.mkForce 0.94;
background = lib.mkForce "#171717"; background = lib.mkForce "#171717";
font_size = lib.mkForce 16.0; font_size = lib.mkForce 16.0;