Simplify font logic

This commit is contained in:
Bun 2025-05-08 09:27:18 -04:00
parent 5259082f76
commit 7a246f4e5e
10 changed files with 25 additions and 38 deletions

View file

@ -1,21 +1,20 @@
{ config, lib, pkgsStable, ... }:
{
config = lib.mkIf config.home.desktop.enable {
home.packages = with pkgsStable; [
liberation_ttf
twitter-color-emoji
noto-fonts
sarasa-gothic
ubuntu_font_family
(nerdfonts.override { fonts = [ "UbuntuMono" ]; })
];
fonts.fontconfig = {
enable = true;
defaultFonts = {
sansSerif = [ "Ubuntu" ];
monospace = [ "UbuntuMono Nerd Font Mono" ];
emoji = [ "Twitter Color Emoji" ];
};
home.packages = lib.mkIf config.home.desktop.enable (with pkgsStable; [
liberation_ttf
twitter-color-emoji
noto-fonts
sarasa-gothic
ubuntu_font_family
(nerdfonts.override { fonts = [ "UbuntuMono" ]; })
]);
fonts.fontconfig = {
enable = config.home.desktop.enable;
defaultFonts = {
sansSerif = [ "Ubuntu" ];
monospace = [ "UbuntuMono Nerd Font Mono" ];
emoji = [ "Twitter Color Emoji" ];
};
};
}