From 1ea8e6fcbacee6ab1617945030cc53dd41de0fda Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 4 May 2024 21:00:40 -0400 Subject: [PATCH] mako: use theme module mako: fix build error by converting int to str with toString --- homeManagerModules/apps/mako/default.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/homeManagerModules/apps/mako/default.nix b/homeManagerModules/apps/mako/default.nix index 4ff2fdba..626e796b 100644 --- a/homeManagerModules/apps/mako/default.nix +++ b/homeManagerModules/apps/mako/default.nix @@ -7,20 +7,18 @@ options = {alyraffauf.apps.mako.enable = lib.mkEnableOption "Enables mako.";}; config = lib.mkIf config.alyraffauf.apps.mako.enable { - home.packages = with pkgs; [(nerdfonts.override {fonts = ["Noto"];})]; - services.mako = { enable = true; anchor = "top-center"; - backgroundColor = "#232634CC"; - borderColor = "#ca9ee6"; + backgroundColor = "${config.alyraffauf.desktop.theme.colors.background}CC"; + borderColor = "${config.alyraffauf.desktop.theme.colors.primary}"; borderRadius = 10; defaultTimeout = 10000; - font = "NotoSans Nerd Font Regular 10"; + font = "${config.alyraffauf.desktop.theme.font.name} Regular ${toString config.alyraffauf.desktop.theme.font.size}"; height = 300; layer = "top"; padding = "15"; - textColor = "#FAFAFA"; + textColor = "${config.alyraffauf.desktop.theme.colors.text}"; width = 400; margin = "20,0"; };