about summary refs log blame commit diff
path: root/users/tazjin/nixos/modules/fonts.nix
blob: ee1b84e581f1be740d30f7e65b4350438537aa7d (plain) (tree)
1
2
3
4
5
6
7





                                                   
                           
















                                         
# Attempt at configuring reasonable font-rendering.

{ pkgs, ... }:

{
  fonts = {
    packages = with pkgs; [
      corefonts
      dejavu_fonts
      jetbrains-mono
      noto-fonts-cjk
      noto-fonts-emoji
    ];

    fontconfig = {
      hinting.enable = true;
      subpixel.lcdfilter = "light";

      defaultFonts = {
        monospace = [ "JetBrains Mono" ];
      };
    };
  };
}