2024-08-03 23:16:43 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
namespace,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
cfg = config.${namespace}.fonts;
|
|
|
|
in {
|
|
|
|
options.${namespace}.fonts = {
|
|
|
|
enable = lib.mkEnableOption "font config";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
(nerdfonts.override {fonts = ["Hack"];})
|
|
|
|
noto-fonts
|
|
|
|
noto-fonts-color-emoji
|
2024-08-18 06:06:38 +00:00
|
|
|
noto-fonts-lgc-plus
|
|
|
|
noto-fonts-cjk-sans
|
|
|
|
noto-fonts-cjk-serif
|
2024-08-03 23:16:43 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
fonts.fontconfig = {
|
|
|
|
enable = true;
|
|
|
|
defaultFonts = {
|
|
|
|
monospace = ["Hack Nerd Font"];
|
|
|
|
emoji = ["Noto Color Emoji"];
|
|
|
|
serif = ["Noto Serif"];
|
|
|
|
sansSerif = ["Noto Sans"];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|