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" + ]; + }) + ]; + }; +}