about summary refs log tree commit diff
path: root/modules/system/fonts/default.nix
blob: ab5117d8dcb10c0138e93e489edf8f4855c7c867 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ 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
        cascadia-code
      ];

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