summaryrefslogblamecommitdiff
path: root/modules/fonts.nix
blob: f1cad225a267d5773dfa09bb22a0e8fc5cf3aa85 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                         

                            






                        
{ config, lib, pkgs, ...} : with lib; {
  options.santi-modules.font-config.enable = mkOption {
    type = types.bool;
    default = true;
    description = "Installs default fonts.";
  };
  config = mkIf config.santi-modules.font-config.enable {
    fonts = {
      fontconfig = {
        enable = true;
        defaultFonts = {
          monospace =  [ "Iosevka" "IPAGothic" ];
          serif = [ "DejaVu Serif" "IPAPMincho" ];
        };
      };
      packages = with pkgs; [
        nerd-fonts.iosevka
        nerd-fonts.fira-code
        ipafont
        kochi-substitute
        dejavu_fonts
      ];
    };
  };
}