nix-home/modules/personal/fonts/default.nix

30 lines
838 B
Nix
Raw Normal View History

2021-11-08 21:21:27 +00:00
{ 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
2021-11-08 23:08:33 +00:00
merriweather
2021-11-08 21:21:27 +00:00
];
} // (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" ];
2021-11-08 21:21:27 +00:00
monospace = lib.mkBefore [ "IBM Plex Mono" ];
};
};
2022-09-26 18:50:26 +00:00
fontDir.enable = true;
2022-05-05 16:27:12 +00:00
} else { }) // (if (strings.hasSuffix "darwin" pkgs.system) then {
fontDir.enable = true;
} else { });
2021-11-08 21:21:27 +00:00
}