Fonts: Difference between revisions
copy from nixos.wiki: how to in nix-shell |
m Fixed broken link. |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 19: | 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. </br>See: [https://discourse.nixos.org/t/guidelines-on-packaging-fonts/7683/2 | ];|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. </br>See: [https://discourse.nixos.org/t/guidelines-on-packaging-fonts/7683/2 Guidelines for font packaging]}} | ||
=== Shorthands for fonts === | === Shorthands for fonts === | ||
| Line 123: | Line 123: | ||
=== Install fonts in nix-shells === | === Install fonts in nix-shells === | ||
<code>fonts</code> is not available as set-valued option in <code>mkshell</code> (gives you an error because it tries to coerce an attribute set into a string). Instead, insert the following:<ref> | <code>fonts</code> is not available as set-valued option in <code>mkshell</code> (gives you an error because it tries to coerce an attribute set into a string). Instead, insert the following:<ref>https://programming.dev/post/32484220</ref> | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
| Line 160: | Line 160: | ||
enableDefaultPackages = true; | enableDefaultPackages = true; | ||
packages = with pkgs; [ | packages = with pkgs; [ | ||
ubuntu-classic | |||
liberation_ttf | liberation_ttf | ||
# Persian Font | # Persian Font | ||