Fonts: Difference between revisions

imported>Extends
Added an overlay for download specific nerd fonts.
imported>Extends
m correcting useless things
Line 23: Line 23:


=== Installing specific fonts from nerdfonts ===
=== 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:
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">
<syntaxhighlight lang="nix">
{ pkgs, lib, config, ... }:
{ pkgs, ... }:
{
{
   nixpkgs.overlays = [ (import ./nix-nerd-fonts-overlay/default.nix) ]; #Assuming you cloned the repository on the same directory
   nixpkgs.overlays = [ (import ./nix-nerd-fonts-overlay/default.nix) ]; #Assuming you cloned the repository on the same directory