From 595fff4738e9e3c358154d04d875c1f54bcc38c3 Mon Sep 17 00:00:00 2001 From: Soispha Date: Mon, 28 Aug 2023 20:25:52 +0200 Subject: Fix(sys/font): Add default fonts with nerd fonts support --- sys/font/default.nix | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'sys/font/default.nix') diff --git a/sys/font/default.nix b/sys/font/default.nix index 303efcf7..cad579b9 100644 --- a/sys/font/default.nix +++ b/sys/font/default.nix @@ -1,21 +1,32 @@ -{pkgs, ...}: let +{ + pkgs, + lib, + ... +}: let nerdFont = pkgs.nerdfonts.override { fonts = [ "SourceCodePro" + "Overpass" ]; }; in { - # TODO: maybe add other fonts? fonts = { packages = [ nerdFont + pkgs.noto-fonts-emoji ]; + #localConf = builtins.readFile ./font.xml; fontconfig = { defaultFonts = { - # serif = ["Vazir"]; - # sansSerif = ["Vazir"]; - monospace = ["SourceCodePro"]; + # FIXME: Add a serif font <2023-08-28> + serif = []; + sansSerif = lib.mkForce ["Overpass Sans Serif"]; + monospace = lib.mkForce ["Sauce Code Pro Mono"]; + emoji = lib.mkForce ["Noto Color Emoji"]; }; + allowType1 = false; + allowBitmaps = false; }; }; + console.font = "Saurce Code Pro Mono"; } -- cgit 1.4.1