2023-11-25 09:02:50 +00:00
|
|
|
{pkgs, ...}: {
|
|
|
|
fonts.fontconfig.enable = true;
|
|
|
|
xdg.configFile = {
|
|
|
|
"fontconfig" = {
|
|
|
|
source = ./fontconfig;
|
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
"fontconfig/conf.d/web-ui-fonts.conf".source = pkgs.fetchurl {
|
2023-12-07 06:16:51 +00:00
|
|
|
url = "https://raw.githubusercontent.com/lilydjwg/dotconfig/1b22d4f0740bb5bbd7c65b6c468920775171b207/fontconfig/web-ui-fonts.conf";
|
2023-11-25 09:02:50 +00:00
|
|
|
hash = "sha256-A4DcV6HTW/IRxXN3NaI1GUfoFdalwgFLpCjgbWENdZU=";
|
|
|
|
};
|
|
|
|
"fontconfig/conf.d/source-han-for-noto-cjk.conf".source = pkgs.fetchurl {
|
2023-12-07 06:16:51 +00:00
|
|
|
url = "https://raw.githubusercontent.com/lilydjwg/dotconfig/1b22d4f0740bb5bbd7c65b6c468920775171b207/fontconfig/source-han-for-noto-cjk.conf";
|
2023-11-25 09:02:50 +00:00
|
|
|
hash = "sha256-jcdDr5VW1qZXbApgfT5FZgxonpRnLs9AY0QagfdL8ic=";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-12-03 12:01:38 +00:00
|
|
|
gtk.font.name = "Sans";
|
|
|
|
dconf.settings = {
|
|
|
|
"org/gnome/desktop/wm/preferences" = {
|
|
|
|
"titlebar-font" = "Sans Bold";
|
|
|
|
};
|
|
|
|
"org/gnome/desktop/interface" = {
|
|
|
|
"document-font-name" = "Sans";
|
|
|
|
"monospace-font-name" = "Monospace";
|
|
|
|
# "font-name" is unneeded
|
|
|
|
# https://github.com/nix-community/home-manager/blob/8765d4e38aa0be53cdeee26f7386173e6c65618d/modules/misc/gtk.nix#L237C19-L237C19
|
|
|
|
};
|
|
|
|
};
|
|
|
|
xresources.properties = {
|
|
|
|
# Fonts
|
|
|
|
"Xft.autohint" = "0";
|
|
|
|
"Xft.lcdfilter" = "lcddefault";
|
|
|
|
"Xft.hintstyle" = "hintslight";
|
|
|
|
"Xft.hinting" = "1";
|
|
|
|
"Xft.antialias" = "1";
|
|
|
|
"Xft.rgba" = "rgb";
|
|
|
|
};
|
|
|
|
|
2023-11-25 09:02:50 +00:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
### Inter
|
|
|
|
inter
|
|
|
|
|
|
|
|
### JetBrains Mono Nerd Font
|
|
|
|
(nerdfonts.override {fonts = ["JetBrainsMono"];})
|
|
|
|
|
|
|
|
### Adobe Source Han
|
2024-01-24 20:14:31 +00:00
|
|
|
# The reason I use Source Han instead of Noto CJK,
|
|
|
|
# is because I heard from #archlinux-cn, Adobe packages font better.
|
|
|
|
# You can 100% use noto-fonts-cjk-{sans,serif} if you prefer consistency/other reason.
|
|
|
|
source-han-sans-vf-otf
|
|
|
|
source-han-serif-vf-otf
|
2023-11-25 09:02:50 +00:00
|
|
|
source-han-mono
|
|
|
|
|
|
|
|
### Noto Fonts
|
|
|
|
noto-fonts
|
|
|
|
noto-fonts-color-emoji
|
|
|
|
];
|
|
|
|
}
|