feat(neovim): use nerdfonts & avoid emojis that break neovim

Some emojis break rendering in neovim/kitty due to width issues.
Can potentially be fixed by switching to a different terminal emulator
but I haven't found one matching my other needs yet.
This commit is contained in:
Felix Schröter 2022-03-30 00:07:31 +02:00
parent f59ae17641
commit 5bc58270bb
Signed by: felschr
GPG key ID: 671E39E6744C807D
3 changed files with 19 additions and 9 deletions

View file

@ -12,18 +12,25 @@
environment.systemPackages = with pkgs; [ wget curl openssl neovim ];
# TODO once nerdfonts 2.2.0 is released switch to NerdFontsSymbolsOnly
# Also needs to be added to known fonts in nixpkgs:
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/data/fonts/nerdfonts/shas.nix
fonts.fonts = with pkgs; [
fira-code
noto-fonts
noto-fonts-extra
noto-fonts-cjk
noto-fonts-emoji
# (nerdfonts.override { fonts = [ "NerdFontsSymbolsOnly" ]; })
(nerdfonts.override { fonts = [ "FiraCode" ]; })
fira-code
];
fonts.fontconfig.defaultFonts = {
serif = [ "Noto Serif" "Noto Color Emoji" ];
sansSerif = [ "Noto Sans" "Noto Color Emoji" ];
monospace = [ "Fira Code" "Noto Color Emoji" ];
emoji = [ "Noto Color Emoji" ];
# monospace = [ "Fira Code" "Noto Color Emoji" "Symbols-1000-em Nerd Font" ];
# emoji = [ "Noto Color Emoji" "Symbols-1000-em Nerd Font" ];
monospace = [ "Fira Code" "Noto Color Emoji" "FiraCode Nerd Font" ];
emoji = [ "Noto Color Emoji" "FiraCode Nerd Font" ];
};
services.printing.enable = true;