Configure fonts

This commit is contained in:
Artemis Tosini 2023-09-10 01:26:43 +00:00
parent 52c156568f
commit fc0d16b085
Signed by: artemist
GPG key ID: EE5227935FE3FF18
2 changed files with 35 additions and 6 deletions

View file

@ -1,11 +1,10 @@
{ pkgs, ... }: { ... }:
{ {
programs.kitty = { programs.kitty = {
enable = true; enable = true;
font = { font = {
package = pkgs.fira-code; name = "Fira Code";
name = "FiraCode Nerd Font";
size = 9; size = 9;
}; };
settings = { settings = {

View file

@ -3,6 +3,34 @@
{ {
fonts = { fonts = {
fontconfig.enable = true; fontconfig.enable = true;
fontconfig.localConf = ''
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<test name="family">
<string>Inter</string>
</test>
<edit name="fontfeatures" mode="append">
<string>tnum on</string>
<string>cv03 on</string>
<string>cv04 on</string>
<string>cv08 on</string>
</edit>
</match>
<match target="font">
<test name="family">
<string>Fira Code</string>
</test>
<edit name="fontfeatures" mode="append">
<string>cv06 on</string>
<string>ss02 on</string>
<string>ss04 on</string>
</edit>
</match>
</fontconfig>
'';
enableDefaultPackages = true; enableDefaultPackages = true;
packages = with pkgs; [ packages = with pkgs; [
# MS fonts # MS fonts
@ -12,7 +40,6 @@
# Mono fonts # Mono fonts
dejavu_fonts dejavu_fonts
fira-code fira-code
fira-code-nerdfont
iosevka iosevka
source-code-pro source-code-pro
source-sans-pro source-sans-pro
@ -20,14 +47,17 @@
# UI fonts # UI fonts
b612 b612
inter inter
inter-ui
roboto roboto
# All the noto # Large multilingual fonts
fira-go
noto-fonts noto-fonts
noto-fonts-cjk noto-fonts-cjk
noto-fonts-emoji noto-fonts-emoji
noto-fonts-extra noto-fonts-extra
# Weird symbols
(nerdfonts.override { fonts = [ "NerdFontsSymbolsOnly" ]; })
]; ];
}; };
} }