53 lines
1.4 KiB
Nix
53 lines
1.4 KiB
Nix
|
{pkgs, ...}: {
|
||
|
fonts = {
|
||
|
enableGhostscriptFonts = false;
|
||
|
fontDir.enable = false;
|
||
|
fontconfig = {
|
||
|
defaultFonts = {
|
||
|
sansSerif = ["IBM Plex Sans"];
|
||
|
serif = ["IBM Plex Sans"];
|
||
|
monospace = ["FiraCode Nerd Font"];
|
||
|
emoji = ["Noto Color Emoji"];
|
||
|
};
|
||
|
localConf = ''
|
||
|
<?xml version="1.0"?>
|
||
|
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||
|
<fontconfig>
|
||
|
<alias binding="weak">
|
||
|
<family>monospace</family>
|
||
|
<prefer>
|
||
|
<family>emoji</family>
|
||
|
</prefer>
|
||
|
</alias>
|
||
|
<alias binding="weak">
|
||
|
<family>sans-serif</family>
|
||
|
<prefer>
|
||
|
<family>emoji</family>
|
||
|
</prefer>
|
||
|
</alias>
|
||
|
<alias binding="weak">
|
||
|
<family>serif</family>
|
||
|
<prefer>
|
||
|
<family>emoji</family>
|
||
|
</prefer>
|
||
|
</alias>
|
||
|
</fontconfig>
|
||
|
'';
|
||
|
};
|
||
|
fonts = with pkgs; [
|
||
|
(nerdfonts.override {fonts = ["FiraCode"];})
|
||
|
ibm-plex
|
||
|
dejavu_fonts
|
||
|
unifont
|
||
|
freefont_ttf
|
||
|
gyre-fonts # TrueType substitutes for standard PostScript fonts
|
||
|
liberation_ttf
|
||
|
noto-fonts
|
||
|
noto-fonts-cjk-sans
|
||
|
noto-fonts-cjk-serif
|
||
|
noto-fonts-emoji
|
||
|
noto-fonts-extra
|
||
|
];
|
||
|
};
|
||
|
}
|