Files
dotfiles/modules/system/fonts.nix
T
2026-05-30 19:03:33 +09:00

44 lines
780 B
Nix

{
pkgs,
lib,
config,
...
}:
let
cfg = config.my.system.fonts;
in
{
options.my.system.fonts = {
enable = lib.mkEnableOption "system font configuration";
};
config = lib.mkIf cfg.enable {
fonts = {
packages = with pkgs; [
noto-fonts
noto-fonts-cjk-sans
noto-fonts-color-emoji
terminus_font
cantarell-fonts
font-awesome
nerd-fonts.blex-mono
];
fontDir.enable = true;
fontconfig = {
defaultFonts = {
serif = [
"Noto Serif CJK JP"
"Noto Color Emoji"
];
sansSerif = [
"Noto Sans CJK JP"
"Noto Clor Emoji"
];
emoji = [ "Noto Color Emoji" ];
};
};
};
};
}