dotfiles/nixos/fonts.nix

36 lines
768 B
Nix

{ pkgs, ... }:
{
# Enable the gtk icon cache
gtk.iconCache.enable = true;
fonts = {
packages = with pkgs; [
dejavu_fonts
emacs-all-the-icons-fonts
emojione
fira-code
fira-mono
font-awesome
# iosevka
noto-fonts-emoji
roboto
source-code-pro
source-sans-pro
source-serif-pro
twemoji-color-font
(nerdfonts.override { fonts = [ "JetBrainsMono" "FantasqueSansMono" ]; })
];
fontconfig = {
hinting.autohint = true;
antialias = true;
allowBitmaps = true;
useEmbeddedBitmaps = true;
defaultFonts = {
monospace = [ "Source Code Pro" ];
sansSerif = [ "Roboto" ];
serif = [ "Source Serif Pro" ];
};
};
};
}