From bb0abe59885bb53ce38a9b1668073e964a7b3c1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sat, 9 Nov 2024 15:06:57 +0100 Subject: [PATCH] add fonts --- config/graphical.nix | 1 + config/graphical/fonts.nix | 40 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 config/graphical/fonts.nix diff --git a/config/graphical.nix b/config/graphical.nix index fa00160b..66bfaebf 100644 --- a/config/graphical.nix +++ b/config/graphical.nix @@ -5,5 +5,6 @@ imports = [ ./kde ./documentation.nix + ./graphical/fonts.nix ]; } diff --git a/config/graphical/fonts.nix b/config/graphical/fonts.nix new file mode 100644 index 00000000..089b67be --- /dev/null +++ b/config/graphical/fonts.nix @@ -0,0 +1,40 @@ +{ pkgs, ... }: +{ + fonts = { + fontDir.enable = true; + fontconfig = { + enable = true; + defaultFonts = { + emoji = [ "Noto Color Emoji" ]; + monospace = [ + "Fira Code" + "Font Awesome 5 Free" + ]; + sansSerif = [ + "Noto Sans" + "Font Awesome 5 Free" + ]; + serif = [ + "Noto Serif" + "Font Awesome 5 Free" + ]; + }; + }; + packages = with pkgs; [ + fira-code + fira-code-symbols + font-awesome + noto-fonts + noto-fonts-cjk-sans + noto-fonts-emoji + noto-fonts-extra + (nerdfonts.override { + fonts = [ + "FiraCode" + "DroidSansMono" + "Noto" + ]; + }) + ]; + }; +}