nix-config/modules/fonts.nix
2024-09-10 12:54:17 -04:00

48 lines
833 B
Nix

{ nix-config, pkgs, ... }:
let
inherit (nix-config.packages.${pkgs.system}) aleo-fonts;
in
{
fonts = {
enableDefaultPackages = false;
packages =
[
aleo-fonts
]
++ (with pkgs; [
noto-fonts
noto-fonts-cjk-serif
noto-fonts-cjk-sans
noto-fonts-emoji
maple-mono
font-awesome
(nerdfonts.override { fonts = [ "Noto" ]; })
kanji-stroke-order-font
liberation_ttf
]);
fontconfig = {
defaultFonts = {
serif = [
"Noto Serif CJK JP"
"Noto Serif"
];
sansSerif = [
"Noto Sans CJK JP"
"Noto Sans"
];
monospace = [
"Noto Sans Mono CJK JP"
"Noto Sans Mono"
];
};
allowBitmaps = false;
};
};
}