From a70a7e5ed46e6671a64c94698f70ceb210eff7cd Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Thu, 24 Sep 2026 13:34:58 +0000 Subject: Provision the JetBrains Mono Nerd Font via the shared home profile Ghostty and Neovim both render glyphs (statusline icons, file-tree icons) that need a Nerd Font, and no font was previously provisioned at all. Co-Authored-By: Claude Sonnet 5 --- modules/home/default.nix | 1 + modules/home/fonts.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 modules/home/fonts.nix (limited to 'modules/home') diff --git a/modules/home/default.nix b/modules/home/default.nix index 7a093bf..15f70bd 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -7,5 +7,6 @@ ./dotfiles.nix ./dev-tools.nix ./desktop-apps.nix + ./fonts.nix ]; } diff --git a/modules/home/fonts.nix b/modules/home/fonts.nix new file mode 100644 index 0000000..26dc924 --- /dev/null +++ b/modules/home/fonts.nix @@ -0,0 +1,14 @@ +{ pkgs, lib, ... }: +let + candidateFonts = [ pkgs.nerd-fonts.jetbrains-mono ]; +in +{ + home.packages = builtins.filter (lib.meta.availableOn pkgs.stdenv.hostPlatform) candidateFonts; + + # Standalone (non-NixOS) Linux activations don't otherwise get fontconfig + # pointed at fonts installed via home.packages - see design.md. Harmless + # no-op on Darwin (font discovery there goes through + # targets.darwin.fonts, unconditional on this option) and idempotent on + # NixOS (already defaults to true via useUserPackages). + fonts.fontconfig.enable = true; +} -- cgit v1.3