From 9a285c0c2734a0ab06842ff0f8053b91ff02c813 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Wed, 7 Aug 2024 22:03:40 -0400 Subject: [PATCH] alacritty: migrate to font modules --- homeManagerModules/apps/alacritty/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/homeManagerModules/apps/alacritty/default.nix b/homeManagerModules/apps/alacritty/default.nix index d6cb9658..61ba1a9b 100644 --- a/homeManagerModules/apps/alacritty/default.nix +++ b/homeManagerModules/apps/alacritty/default.nix @@ -2,8 +2,10 @@ config, lib, ... -}: { - config = lib.mkIf config.ar.home.apps.alacritty.enable { +}: let + cfg = config.ar.home; +in { + config = lib.mkIf cfg.apps.alacritty.enable { programs.alacritty = { enable = true; settings = { @@ -11,8 +13,8 @@ draw_bold_text_with_bright_colors = true; primary = { - background = "${config.ar.home.theme.colors.background}"; - foreground = "${config.ar.home.theme.colors.text}"; + background = "${cfg.theme.colors.background}"; + foreground = "${cfg.theme.colors.text}"; }; transparent_background_colors = true; @@ -20,7 +22,7 @@ font = { normal = { - family = "UbuntuSans Nerd Font"; + family = cfg.theme.font.monospaceFont.name; style = "Regular"; };