aboutsummaryrefslogtreecommitdiff
path: root/modules/system/font.nix
blob: d5a7d091da5c3ded394ea4fa8ae7b4af985c288c (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
33
{
  flake.modules.nixos.font =
    { pkgs, ... }:
    {
      environment.sessionVariables = {
        FREETYPE_PROPERTIES = "cff:no-stem-darkening=0 autofitter:no-stem-darkening=0";
      };

      fonts = {
        enableDefaultPackages = true;
        packages = with pkgs; [
          noto-fonts
          noto-fonts-cjk-sans
          liberation_ttf
          inter
          jetbrains-mono
        ];

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