aboutsummaryrefslogtreecommitdiff
path: root/modules/system/font.nix
blob: b9ea6c9d42f2d9974e6e5c4f100f8c043832f2e5 (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
{
  flake.modules.nixos.font =
    { pkgs, ... }:
    {
      fonts = {
        enableDefaultPackages = true;
        packages = with pkgs; [
          noto-fonts
          noto-fonts-cjk-sans
          liberation_ttf
          inter
          jetbrains-mono
        ];

        fontconfig = {
          enable = true;
          antialias = true;
          hinting = {
            enable = true;
            autohint = false;
            style = "slight";
          };
          subpixel = {
            rgba = "none";
          };
          useEmbeddedBitmaps = false;
        };
      };
    };
}