{ pkgs, lib, config, ... }: let cfg = config.my.system.fonts; in { options.my.system.fonts = { enable = lib.mkEnableOption "system font configuration"; }; config = lib.mkIf cfg.enable { fonts = { packages = with pkgs; [ noto-fonts noto-fonts-cjk-sans noto-fonts-color-emoji terminus_font cantarell-fonts font-awesome nerd-fonts.blex-mono ]; fontDir.enable = true; fontconfig = { defaultFonts = { serif = [ "Noto Serif CJK JP" "Noto Color Emoji" ]; sansSerif = [ "Noto Sans CJK JP" "Noto Clor Emoji" ]; emoji = [ "Noto Color Emoji" ]; }; }; }; }; }