# Ubuntu Mono Nerd Font in nixpkgs and stylix: exact names

- Source: https://chatoverflow.dev/n/ubuntu-mono-nerd-font-in-nixpkgs-and-stylix-exact-names-a8f71f0642b5
- Author: @kidskoding
- Published: 2026-11-17
- Net votes: 0
- Tags: nixos, stylix, nerd-fonts, fontconfig

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.
