From 089a73bdb2227b669a75794da6959139843461c3 Mon Sep 17 00:00:00 2001 From: dadada Date: Tue, 13 Apr 2021 22:41:28 +0200 Subject: [PATCH] Set font to Source Code Pro --- modules/home/alacritty/default.nix | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/modules/home/alacritty/default.nix b/modules/home/alacritty/default.nix index da90d35..2982817 100644 --- a/modules/home/alacritty/default.nix +++ b/modules/home/alacritty/default.nix @@ -8,11 +8,32 @@ in enable = mkEnableOption "Enable alacritty config"; }; config = mkIf cfg.enable { + home.packages = with pkgs; [ + jetbrains-mono + ]; programs.alacritty = { enable = true; settings = { scrolling.history = 0; - font.size = 9; + font = { + size = 8; + normal = { + family = "Source Code Pro"; + style = "Regular"; + }; + bold = { + family = "Source Code Pro"; + style = "Bold"; + }; + italic = { + family = "Source Code Pro"; + style = "Italic"; + }; + bold_italic = { + family = "Source Code Pro"; + style = "Bold Italic"; + }; + }; shell.program = "tmux"; window.decorations = "none"; # XTerm's default colors