From c7b9a639e437d5e6ae7ae73915c32056b60cea7e Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 4 May 2024 20:51:15 -0400 Subject: [PATCH] alacritty: move to new theme module --- homeManagerModules/apps/alacritty/default.nix | 8 ++++---- homeManagerModules/desktop/theme.nix | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/homeManagerModules/apps/alacritty/default.nix b/homeManagerModules/apps/alacritty/default.nix index 31bd8a7d..856ca834 100644 --- a/homeManagerModules/apps/alacritty/default.nix +++ b/homeManagerModules/apps/alacritty/default.nix @@ -14,18 +14,18 @@ settings = { colors = { primary = { - foreground = "#fafafa"; - background = "#232634"; + foreground = "${config.alyraffauf.desktop.theme.colors.text}"; + background = "${config.alyraffauf.desktop.theme.colors.background}"; }; transparent_background_colors = true; draw_bold_text_with_bright_colors = true; }; font = { normal = { - family = "NotoSansMNerdFont"; + family = "${config.alyraffauf.desktop.theme.terminalFont.name}"; style = "Regular"; }; - size = 11; + size = config.alyraffauf.desktop.theme.terminalFont.size; }; selection.save_to_clipboard = true; window = { diff --git a/homeManagerModules/desktop/theme.nix b/homeManagerModules/desktop/theme.nix index 64e854ef..750b0238 100644 --- a/homeManagerModules/desktop/theme.nix +++ b/homeManagerModules/desktop/theme.nix @@ -96,6 +96,11 @@ default = "#FAFAFA"; type = lib.types.str; }; + background = lib.mkOption { + description = "Background color."; + default = "#232634"; + type = lib.types.str; + }; primary = lib.mkOption { description = "Primary color."; default = "#CA9EE6";