overlays/iosevka: refactor

iosevka overlay now uses iosevka config build plans in extesible forms!
This commit is contained in:
Primrose 2026-01-22 21:18:32 +01:00
parent acab4af809
commit f2bd846e22
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
7 changed files with 325 additions and 193 deletions

View file

@ -0,0 +1,24 @@
{ lib }:
let
list = [
{ spacing = "normal"; }
# Iosevka + Ghostty makes "…" display in a odd way.
# We use "term" width to avoid this.
# https://github.com/ghostty-org/ghostty/discussions/10335
{ spacing = "term"; }
];
in
map (
{ spacing }@cfg:
let
name = lib.toSentenceCase spacing;
in
final: prev:
cfg
// {
family = prev.family + "-${name}";
}
) list