diff options
author | Soispha <soispha@vhack.eu> | 2023-08-28 20:25:52 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-08-28 20:25:52 +0200 |
commit | 595fff4738e9e3c358154d04d875c1f54bcc38c3 (patch) | |
tree | a1aaea2c5bf2f4dd25e58254714a2060815767bb /sys/font/default.nix | |
parent | Refactor(hm/conf/alacritty): Split the configuration in separate files (diff) | |
download | nixos-config-595fff4738e9e3c358154d04d875c1f54bcc38c3.tar.gz nixos-config-595fff4738e9e3c358154d04d875c1f54bcc38c3.zip |
Fix(sys/font): Add default fonts with nerd fonts support
Diffstat (limited to '')
-rw-r--r-- | sys/font/default.nix | 21 |
1 files changed, 16 insertions, 5 deletions
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"; } |