Fonts: Difference between revisions
Tags: Mobile edit Mobile web edit |
m Added some sample code for Nerd Fonts package installation |
||
| Line 40: | Line 40: | ||
This will cause NixOS to download only the [https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/FiraCode Fira Code] and [https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/DroidSansMono Droid Sans Mono] fonts from [https://github.com/ryanoasis/nerd-fonts nerd-fonts] instead of the whole package. The relevant names can be found by looking at the file name for your relevant font on the [https://github.com/ryanoasis/nerd-fonts/releases official release page] assets. | This will cause NixOS to download only the [https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/FiraCode Fira Code] and [https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/DroidSansMono Droid Sans Mono] fonts from [https://github.com/ryanoasis/nerd-fonts nerd-fonts] instead of the whole package. The relevant names can be found by looking at the file name for your relevant font on the [https://github.com/ryanoasis/nerd-fonts/releases official release page] assets. | ||
For configurations using later versions of Nixpkgs, individual Nerd Fonts packages can be installed like so:<syntaxhighlight lang="nix"> | |||
fonts.packages = with pkgs; [ | |||
nerd-fonts.fira-code | |||
nerd-fonts.droid-sans-mono | |||
]; | |||
</syntaxhighlight> | |||
=== Let Fontconfig know the fonts within your Nix profile === | === Let Fontconfig know the fonts within your Nix profile === | ||