Free Palestine 🇵🇸
🇵🇸
Help Spread Awareness for Palestine.

Packing Custom Fonts for NixOS

I have been using NixOS for a long time. And I am very happy with it. It is very stable and easy to configure. With NixOS, installing and configuring famous and open-source fonts is already very straightforward. Here is my font configuration in configuration.nix: fonts = { fontDir.enable = true; enableGhostscriptFonts = true; packages = with pkgs; [ cantarell-fonts hack-font inter jetbrains-mono liberation_ttf monaspace noto-fonts ubuntu_font_family (nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" "JetBrainsMono" ]; }) ]; }; Things get a little bit complicated when you want to use a custom or any commercial font that is not available in Nix packages....

April 5, 2024 Â· 3 min Â· Ali Oguzhan Yildiz