From 281fd1a50f123ec816cec2d1441497959e118239 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Wed, 7 Aug 2024 21:52:57 -0400 Subject: [PATCH] kitty: migrate to font modules --- homeManagerModules/apps/kitty/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/homeManagerModules/apps/kitty/default.nix b/homeManagerModules/apps/kitty/default.nix index dc1c6f82..e97f5074 100644 --- a/homeManagerModules/apps/kitty/default.nix +++ b/homeManagerModules/apps/kitty/default.nix @@ -3,14 +3,16 @@ lib, pkgs, ... -}: { - config = lib.mkIf config.ar.home.apps.kitty.enable { +}: let + cfg = config.ar.home; +in { + config = lib.mkIf cfg.apps.kitty.enable { programs.kitty = { enable = true; font = { - name = "UbuntuSansMono Nerd Font"; - size = config.gtk.font.size + 1; + inherit (cfg.theme.monospaceFont) name; + size = cfg.theme.monospaceFont.size + 1; }; settings = {