Fonts: Difference between revisions
Add section on patching nerd font into fonts |
mNo edit summary |
||
| Line 7: | Line 7: | ||
Despite looking like normal packages, simply adding these font packages to your <code>environment.systemPackages</code> won't make the fonts accessible to applications. To achieve that, put these packages in the <code>[https://search.nixos.org/options?channel=unstable&show=fonts.packages&from=0&size=50&sort=relevance&type=packages&query=fonts.packages fonts.packages]</code> NixOS options list instead. | Despite looking like normal packages, simply adding these font packages to your <code>environment.systemPackages</code> won't make the fonts accessible to applications. To achieve that, put these packages in the <code>[https://search.nixos.org/options?channel=unstable&show=fonts.packages&from=0&size=50&sort=relevance&type=packages&query=fonts.packages fonts.packages]</code> NixOS options list instead. | ||
''For example:'' | ''For example:'' | ||
{{File|3=fonts.packages = with pkgs; [ | |||
fonts.packages = with pkgs; [ | |||
noto-fonts | noto-fonts | ||
noto-fonts-cjk-sans | noto-fonts-cjk-sans | ||
| Line 20: | Line 19: | ||
dina-font | dina-font | ||
proggyfonts | proggyfonts | ||
]; | ];|name=/etc/nixos/configuration.nix|lang=nix}}{{Note|Be aware that sometimes font names and packages name differ and there is no universal convention in NixOS. See [https://discourse.nixos.org/t/guidelines-on-packaging-fonts/7683/2| Guidelines for font packaging]}} | ||
Be aware that sometimes font names and packages name differ and there is no universal convention in NixOS. See [https://discourse.nixos.org/t/guidelines-on-packaging-fonts/7683/2 Guidelines for font packaging] | |||
=== Shorthands for fonts === | === Shorthands for fonts === | ||