Simplify font logic
This commit is contained in:
parent
5259082f76
commit
7a246f4e5e
10 changed files with 25 additions and 38 deletions
|
@ -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" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue