From de37098e56974490ada1fc307f9656f461894845 Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Sun, 5 May 2024 22:02:20 +0300 Subject: [PATCH] system/fonts: insert Symbols Nerd Font --- system/programs/fonts.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/system/programs/fonts.nix b/system/programs/fonts.nix index 0fa1545d..13baaa4c 100644 --- a/system/programs/fonts.nix +++ b/system/programs/fonts.nix @@ -24,11 +24,14 @@ # user defined fonts # the reason there's Noto Color Emoji everywhere is to override DejaVu's # B&W emojis that would sometimes show instead of some Color emojis - fontconfig.defaultFonts = { - serif = ["Noto Serif" "Noto Color Emoji"]; - sansSerif = ["Inter" "Noto Color Emoji"]; - monospace = ["JetBrains Mono" "Noto Color Emoji"]; - emoji = ["Noto Color Emoji"]; - }; + fontconfig.defaultFonts = let + addAll = builtins.mapAttrs (k: v: ["Symbols Nerd Font"] ++ v ++ ["Noto Color Emoji"]); + in + addAll { + serif = ["Noto Serif"]; + sansSerif = ["Inter"]; + monospace = ["JetBrains Mono"]; + emoji = []; + }; }; }