aboutsummaryrefslogblamecommitdiff
path: root/modules/system/fonts/default.nix
blob: 55e4020ae07a306799cd38190af14ce1742c4d93 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
                           

                                

  







                                                  







                                                     

                          

                          
                      
 




                                                  


                       



                        


      
{ 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;
        defaultFonts = {
          serif = [ "Bitstream Vera Serif" ];
          sansSerif = [ "Bitstream Vera Sans" ];
          monospace = [ "Bitstream Vera Sans Mono" ];
        };
      };
      fonts = with pkgs; [
        dejavu_fonts
        ttf_bitstream_vera

        font-awesome_5

        noto-fonts
        noto-fonts-cjk # Chinese, Japanese, Korean
        noto-fonts-emoji
        noto-fonts-emoji
        noto-fonts-extra

        cantarell-fonts

        source-code-pro
        source-sans-pro
        source-serif-pro
      ];
    };
  };
}