Fonts: Difference between revisions
imported>Verhovsky No edit summary |
imported>Feliix42 Adapt instructions for 20.09, overriding the nerdfont selection does not require an overlay anymore |
||
Line 23: | Line 23: | ||
=== Installing specific fonts from nerdfonts === | === Installing specific fonts from nerdfonts === | ||
The <code>nerdfonts</code> package, which contains all fonts from the [https://www.nerdfonts.com/ nerdfonts] repository is quite large and conrains a large number of fonts which take some time to install. If you only need a selection of fonts from the package, you can overwrite the font selection on Stable 20.09 like so: | |||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
{ pkgs, ... }: | { pkgs, ... }: | ||
Line 51: | Line 37: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
This will cause NixOS to download only Fira Code and Droid Sans Mono fonts from nerd-fonts instead of the whole package. | 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. | ||
=== Imperative installation of user fonts === | === Imperative installation of user fonts === |