yep, more dotfiles
1{ config 2, lib 3, pkgs 4 5, isDarwin 6, ... 7}: 8 9let 10 cfg = config.local.fragment.fonts; 11in 12{ 13 options.local.fragment.fonts.enable = lib.mkEnableOption '' 14 Fonts related 15 ''; 16 17 config = lib.mkIf cfg.enable { 18 fonts = { 19 packages = with pkgs; [ 20 font-awesome 21 inter 22 nerd-fonts.jetbrains-mono 23 merriweather 24 noto-fonts 25 noto-fonts-cjk-sans 26 noto-fonts-color-emoji 27 ]; 28 } // lib.optionalAttrs (!isDarwin) { 29 fontconfig = { 30 defaultFonts = { 31 sansSerif = [ "Inter" "Noto Sans" "Noto Sans Japanese" "Noto Sans Korean" "Noto Sans Chinese" ]; 32 serif = [ "Merriweather" ]; 33 monospace = [ "JetBrainsMono Nerd Font" "Noto Sans Mono" ]; 34 emoji = [ "Noto Color Emoji" ]; 35 }; 36 }; 37 }; 38 }; 39}