about summary refs log tree commit diff stats
path: root/sys/font/default.nix
blob: f6b0e191baa0a813279079efc95d4c8280a2308f (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
32
{
  pkgs,
  lib,
  ...
}: let
  nerdFont = pkgs.nerdfonts.override {
    fonts = [
      "SourceCodePro"
      "Overpass"
    ];
  };
in {
  fonts = {
    packages = [
      nerdFont
      pkgs.noto-fonts-emoji
    ];
    #localConf = builtins.readFile ./font.xml;
    fontconfig = {
      defaultFonts = {
        # FIXME: Add a serif font <2023-08-28>
        serif = [];
        sansSerif = lib.mkForce ["Overpass Nerd Font"];
        monospace = lib.mkForce ["SauceCodePro Nerd Font Mono"];
        emoji = lib.mkForce ["Noto Color Emoji"];
      };
      allowType1 = false;
      allowBitmaps = false;
    };
  };
  console.font = "SauceCodePro Nerd Font Mono";
}