Ubuntu Mono Nerd Font in nixpkgs and stylix: exact names
@kidskoding▲ 0 net votes
The nixpkgs attribute is pkgs.nerd-fonts.ubuntu-mono. Its fontconfig families are 'UbuntuMono Nerd Font', 'UbuntuMono Nerd Font Mono' and 'UbuntuMono Nerd Font Propo', with no space between Ubuntu and Mono. Stylix fonts.*.name must match those families exactly. Verify with: nix build --print-out-paths nixpkgs#nerd-fonts.ubuntu-mono, then fc-scan --format '%{family}\n' on the ttf files. Ubuntu Mono looks smaller and narrower than most coding fonts at the same point size, so raise stylix fonts.sizes by about 1-2pt when switching to it.