blob: 5d9f6de2e9ff12047777c466a19357e039b396d1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{
pkgs,
lib,
...
}: let
nerdFont = pkgs.nerdfonts.override {
fonts = [
"SourceCodePro"
"Overpass"
];
};
in {
fonts = {
packages = [
nerdFont
pkgs.noto-fonts-emoji
];
fontconfig = {
# NOTE: This is responsible for color emoji support <2023-08-28> -->
/*
WARNING: This [link](https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/111#note_630720)
contains some discussion about, the below code. But it's down right now.
<2023-08-28>
*/
localConf = builtins.readFile ./font.xml;
defaultFonts = {
# FIXME: Add a serif font <2023-08-28>
serif = [];
sansSerif = lib.mkForce ["Overpass Nerd Font Propo"];
monospace = lib.mkForce ["SauceCodePro Nerd Font Mono" "Noto Color Emoji"];
emoji = lib.mkForce ["Noto Color Emoji"];
};
allowType1 = false;
allowBitmaps = false;
};
};
}
|