1
1
Fork 0

fonts: trim installed font list to mitigate pango performance

This commit is contained in:
Myned 2025-03-30 21:55:23 -05:00
parent 8e5c55b4b5
commit 95766f8048
Signed by: Myned
GPG key ID: C7224454F7881A34

View file

@ -22,62 +22,61 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
# https://wiki.nixos.org/wiki/Fonts # https://wiki.nixos.org/wiki/Fonts
fonts = { fonts = {
enableDefaultPackages = true; # Fallback fonts # BUG: Amount of installed fonts impacts pango load times, so only install necessary fonts
# https://github.com/davatorium/rofi/issues/673 et al.
packages = with pkgs.nerd-fonts; packages = with pkgs.nerd-fonts;
[ [
# Monospace
# https://www.nerdfonts.com/#home # https://www.nerdfonts.com/#home
#?? kitten choose-fonts # Monospace
departure-mono #// departure-mono
gohufont #// gohufont
iosevka-term #// iosevka-term
iosevka-term-slab iosevka-term-slab
jetbrains-mono #// jetbrains-mono
roboto-mono #// roboto-mono
shure-tech-mono #// shure-tech-mono
space-mono #// space-mono
zed-mono #// zed-mono
] ]
++ (with pkgs; [ ++ (with pkgs; [
# https://fonts.google.com/
(google-fonts.override { (google-fonts.override {
fonts = [ fonts = [
# Pixel # Pixel
"Geo" #// "Geo"
"Silkscreen" #// "Silkscreen"
# Sans-serif # Sans-serif
"Josefin Sans" #// "Josefin Sans"
"Jost" #// "Jost"
"Lexend" #// "Lexend"
"Outfit" #// "Outfit"
"Roboto" #// "Roboto"
"Roboto Flex" #// "Roboto Flex"
# Sans-serif condensed # Sans-serif condensed
"Oswald" #// "Oswald"
"Roboto Condensed" #// "Roboto Condensed"
# Serif # Serif
"Lora" "Lora"
"Roboto Serif" #// "Roboto Serif"
# Slab # Slab
"Aleo" #// "Aleo"
"Arvo" "Arvo"
"Josefin Slab" #// "Josefin Slab"
"Roboto Slab" #// "Roboto Slab"
"Solway" #// "Solway"
]; ];
}) })
# Emoji # Emoji
noto-fonts-color-emoji #// noto-fonts-color-emoji
noto-fonts-emoji-blob-bin noto-fonts-emoji-blob-bin
# Microsoft # Microsoft
corefonts vista-fonts
vistafonts
# Fallback # Fallback
unifont unifont