aboutsummaryrefslogblamecommitdiff
path: root/modules/system/fonts/default.nix
blob: d4cd077dc2d640124313d4f2955b2919073ef2aa (plain) (tree)
1
2
3
4
5
                           

                                

  

























                                                                       
{ pkgs, config, lib, ... }:
let
  cfg = config.my.systems.fonts;
in
{
  options.my.systems.fonts = with lib; {
    enable = mkEnableOption "fonts configuration";
  };

  config = lib.mkIf cfg.enable {
    fonts = {
      enableDefaultFonts = true;
      fontDir.enable = true;
      fontconfig.enable = true;
      fonts = with pkgs; [
        dejavu_fonts
        font-awesome_5
        noto-fonts
        noto-fonts-cjk # Chinese, Japanese, Korean
        noto-fonts-emoji
        noto-fonts-emoji
        noto-fonts-extra
        source-code-pro
        source-sans-pro
        source-serif-pro
      ];

      fontconfig.defaultFonts = { monospace = [ "Source Code Pro" ]; };
    };
  };
}