summaryrefslogtreecommitdiff
path: root/modules/nixos/defaults/fonts.nix
blob: 5aa644e0835a237f791bf5bf59591d353678e638 (plain)
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
32
{
  config,
  lib,
  pkgs,
  ...
}:

{
  config = lib.mkIf config.services.xserver.enable {
    fonts = {
      enableDefaultPackages = true;

      packages = with pkgs; [
        noto-fonts
        noto-fonts-color-emoji
        noto-fonts-cjk-sans

        nerd-fonts.hack
      ];

      fontconfig = {
        enable = true;
        defaultFonts = lib.mkDefault {
          serif = [ "Noto Serif" ];
          sansSerif = [ "Noto Sans" ];
          emoji = [ "Noto Color Emoji" ];
          monospace = [ "Hack Nerd Font" ];
        };
      };
    };
  };
}