diff --git a/modules/style/fonts.nix b/modules/style/fonts.nix index 0fe60fb..bcf8c43 100644 --- a/modules/style/fonts.nix +++ b/modules/style/fonts.nix @@ -1,5 +1,45 @@ {pkgs, ...}: let inherit (builtins) mapAttrs; + + fancy-iosevka = pkgs.iosevka.override { + privateBuildPlan = { + family = "fancy-iosevka"; + spacing = "term"; + serifs = "sans"; + noCvSs = true; + exportGlyphNames = false; + + ligations.inherits = "dlig"; + variants = { + inherits = "ss15"; + design = { + e = "flat-crossbar"; + f = "diagonal-tailed-crossbar-at-x-height"; + }; + }; + weights.Regular = { + shape = 400; + menu = 400; + css = 400; + }; + weights.Bold = { + shape = 700; + menu = 700; + css = 700; + }; + widths.Condensed = { + shape = 500; + menu = 3; + css = "condensed"; + }; + widths.normal = { + shape = 600; + menu = 5; + css = "normal"; + }; + }; + set = "Fancy"; + }; in { # A (somewhat) sane list of fonts to be installed. fonts = { @@ -55,6 +95,8 @@ in { comic-shanns-mono symbols-only ; + + inherit fancy-iosevka; }; fontDir = { # Whether to create a directory with links to all fonts in