Fonts: Difference between revisions

imported>Siers
m Tiny grammar updates
imported>Extends
Added an overlay for download specific nerd fonts.
Line 21: Line 21:
];
];
</syntaxhighlight>
</syntaxhighlight>
=== Installing specific fonts from nerdfonts ===
You probably want to install some fonts from nerdfonts repository and not the entiere repository (take much time to install all the fonts). To achieve that, you can use an overlay created by [https://github.com/lightdiscord/nix-nerd-fonts-overlay# LightDIscord]. Here is an example of how to use it:
<syntaxhighlight lang="nix">
{ pkgs, lib, config, ... }:
{
  nixpkgs.overlays = [ (import ./nix-nerd-fonts-overlay/default.nix) ]; #Assuming you cloned the repository on the same directory
  fonts.fonts = with pkgs; [
    nerd-fonts.firacode
    nerdfonts.jetbrainsmono
    nerdfonts.droidsansmono
  ];
}
</syntaxhighlight>
This will cause NixOS to download only fira code, jetbrains mono and droid sans mono fonts from nerd-fonts instead of the whole package.


=== Imperative installation of user fonts ===
=== Imperative installation of user fonts ===