From eb5e3915a90ce29c5dec5389b549cee293c5aa80 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Mon, 11 May 2026 13:44:50 +0100 Subject: [PATCH] stylix: configure sans/serif fonts, drop fuzzel font override Stylix's fuzzel target writes main.font from stylix.fonts.sansSerif and collided with our explicit FiraMono. Pin sansSerif/serif to Inter (cleaner than DejaVu) and remove the per-app font from fuzzel so stylix can apply consistently. Co-Authored-By: Claude Opus 4.7 --- settings/hyprland.nix | 3 +-- settings/stylix.nix | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/settings/hyprland.nix b/settings/hyprland.nix index a691f68..57f1f51 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -272,9 +272,8 @@ programs.fuzzel = { enable = true; settings = { - # Colors now come from stylix.targets.fuzzel. + # Font + colors now come from stylix.targets.fuzzel. main = { - font = "FiraMono Nerd Font:size=12"; lines = 8; width = 32; horizontal-pad = 18; diff --git a/settings/stylix.nix b/settings/stylix.nix index 084f553..7ae3578 100644 --- a/settings/stylix.nix +++ b/settings/stylix.nix @@ -19,9 +19,21 @@ size = 24; }; - fonts.monospace = { - package = pkgs.nerd-fonts.fira-mono; - name = "FiraMono Nerd Font"; + fonts = { + monospace = { + package = pkgs.nerd-fonts.fira-mono; + name = "FiraMono Nerd Font"; + }; + # Used by stylix for fuzzel, waybar, mako etc. Stylix defaults this + # to DejaVu Sans which looks dated; Inter is a clean modern sans. + sansSerif = { + package = pkgs.inter; + name = "Inter"; + }; + serif = { + package = pkgs.inter; + name = "Inter"; + }; }; };