aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <tom@vanderlee.com>2026-09-24 13:34:58 +0000
committerGravatar Tom van der Lee <tom@vanderlee.com>2026-09-24 13:34:58 +0000
commita70a7e5ed46e6671a64c94698f70ceb210eff7cd (patch)
treee8050b592a7d1f6b5d2cdd66ab052b5e9a31659b /modules
parent096e82ca45a5360b4b2dd084e0fb1a937a227a69 (diff)
downloaddesktop-flake-a70a7e5ed46e6671a64c94698f70ceb210eff7cd.tar.gz
desktop-flake-a70a7e5ed46e6671a64c94698f70ceb210eff7cd.tar.bz2
desktop-flake-a70a7e5ed46e6671a64c94698f70ceb210eff7cd.zip
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 <noreply@anthropic.com>
Diffstat (limited to 'modules')
-rw-r--r--modules/home/default.nix1
-rw-r--r--modules/home/fonts.nix14
2 files changed, 15 insertions, 0 deletions
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 @@
7 ./dotfiles.nix 7 ./dotfiles.nix
8 ./dev-tools.nix 8 ./dev-tools.nix
9 ./desktop-apps.nix 9 ./desktop-apps.nix
10 ./fonts.nix
10 ]; 11 ];
11} 12}
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 @@
1{ pkgs, lib, ... }:
2let
3 candidateFonts = [ pkgs.nerd-fonts.jetbrains-mono ];
4in
5{
6 home.packages = builtins.filter (lib.meta.availableOn pkgs.stdenv.hostPlatform) candidateFonts;
7
8 # Standalone (non-NixOS) Linux activations don't otherwise get fontconfig
9 # pointed at fonts installed via home.packages - see design.md. Harmless
10 # no-op on Darwin (font discovery there goes through
11 # targets.darwin.fonts, unconditional on this option) and idempotent on
12 # NixOS (already defaults to true via useUserPackages).
13 fonts.fontconfig.enable = true;
14}