nix-home/modules/personal/fonts/default.nix
Natsu Kagami d81a8e9b42 Fix discord font
Discord is not picking up fonts that aren't explicitly listed in the
fontconfig list, so we add Japanese and Korean fonts into our mix.
2022-05-31 17:01:35 +00:00

29 lines
811 B
Nix

{ pkgs, lib, config, ... }:
with lib;
{
# Fonts
config.fonts = {
fonts = with pkgs; [
noto-fonts-emoji-blob-bin
ibm-plex
(nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
noto-fonts
noto-fonts-cjk
merriweather
];
} // (if (strings.hasSuffix "linux" pkgs.system) then {
enableDefaultFonts = false;
fontconfig = {
defaultFonts = {
emoji = lib.mkBefore [ "Blobmoji" ];
serif = lib.mkBefore [ "IBM Plex Serif" "IBM Plex Sans JP" "IBM Plex Sans KR" ];
sansSerif = lib.mkBefore [ "IBM Plex Sans" "IBM Plex Sans JP" "IBM Plex Sans KR" ];
monospace = lib.mkBefore [ "IBM Plex Mono" ];
};
};
} else { }) // (if (strings.hasSuffix "darwin" pkgs.system) then {
fontDir.enable = true;
} else { });
}