2020-08-22 17:44:39 +02:00
|
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
fonts = {
|
|
|
|
|
fonts = with pkgs; [
|
|
|
|
|
corefonts # good ol’ microsoft fonts
|
|
|
|
|
google-fonts # google font collection (free)
|
2020-10-11 13:02:48 +02:00
|
|
|
|
lmodern # Latin Modern for non-latex applications
|
2020-09-25 18:31:43 +02:00
|
|
|
|
(nerdfonts.override { fonts = [ "Iosevka" ]; })
|
2020-08-22 17:44:39 +02:00
|
|
|
|
#roboto # standalone roboto has awful kerning
|
2020-09-25 18:31:43 +02:00
|
|
|
|
source-han-sans
|
|
|
|
|
source-han-serif # CJK fonts
|
2020-08-22 17:44:39 +02:00
|
|
|
|
vistafonts # newer microsoft fonts
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
enableDefaultFonts = true;
|
|
|
|
|
enableFontDir = true;
|
|
|
|
|
|
2020-09-26 18:10:22 +02:00
|
|
|
|
fontconfig = {
|
|
|
|
|
defaultFonts = {
|
|
|
|
|
monospace = [ "Iosevka Nerd Font" "Source Han Sans" ];
|
|
|
|
|
sansSerif = [ "Roboto" "Source Han Sans" ];
|
|
|
|
|
serif = [ "Georgia" "Source Han Serif" ];
|
|
|
|
|
};
|
|
|
|
|
localConf = ''
|
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
|
|
|
|
|
<fontconfig>
|
|
|
|
|
<alias>
|
|
|
|
|
<family>system-ui</family>
|
|
|
|
|
<prefer>
|
|
|
|
|
<family>sans-serif</family>
|
|
|
|
|
</prefer>
|
|
|
|
|
</alias>
|
|
|
|
|
</fontconfig>
|
|
|
|
|
'';
|
2020-08-22 17:44:39 +02:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|