Skip to content

Switch default font to Google Sans Code once nixpkgs ships it #22

Description

@repparw

Context

ryanoasis/nerd-fonts#2050 merged 2026-07-31: adds Google Sans Code to nerd-fonts.

Not yet in nixpkgs: nixpkgs still packages nerd-fonts v3.4.0 (released 2025-04-24), which predates the merge. pkgs.nerd-fonts.google-sans-code does not exist in the pinned nixos-unstable (2026-07-29).

What to do

When a nerd-fonts release ≥ next (v3.5.0+) ships GoogleSansCode and nixpkgs bumps to it:

  • Change modules/aspects/style.nix stylix.fonts.monospace (and optionally sansSerif/serif) default:
    • package: pkgs.nerd-fonts.google-sans-code
    • name: GoogleSansCode Nerd Font Mono (monospace) / GoogleSansCode Nerd Font (sans/serif)
  • Verify the attr name with nix search nixpkgs google-sans-code before editing.

Trigger

Watch the nerd-fonts repo Releases only: GitHub → ryanoasis/nerd-fonts → Watch → Custom → check Releases. A new tag (v3.5.0+) is the signal; then confirm nixpkgs bump via nh search / search.nixos.org.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions