Configure fonts
This commit is contained in:
parent
52c156568f
commit
fc0d16b085
|
@ -1,11 +1,10 @@
|
|||
{ pkgs, ... }:
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
font = {
|
||||
package = pkgs.fira-code;
|
||||
name = "FiraCode Nerd Font";
|
||||
name = "Fira Code";
|
||||
size = 9;
|
||||
};
|
||||
settings = {
|
||||
|
|
|
@ -3,6 +3,34 @@
|
|||
{
|
||||
fonts = {
|
||||
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;
|
||||
packages = with pkgs; [
|
||||
# MS fonts
|
||||
|
@ -12,7 +40,6 @@
|
|||
# Mono fonts
|
||||
dejavu_fonts
|
||||
fira-code
|
||||
fira-code-nerdfont
|
||||
iosevka
|
||||
source-code-pro
|
||||
source-sans-pro
|
||||
|
@ -20,14 +47,17 @@
|
|||
# UI fonts
|
||||
b612
|
||||
inter
|
||||
inter-ui
|
||||
roboto
|
||||
|
||||
# All the noto
|
||||
# Large multilingual fonts
|
||||
fira-go
|
||||
noto-fonts
|
||||
noto-fonts-cjk
|
||||
noto-fonts-emoji
|
||||
noto-fonts-extra
|
||||
|
||||
# Weird symbols
|
||||
(nerdfonts.override { fonts = [ "NerdFontsSymbolsOnly" ]; })
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue