mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 03:28:12 +09:00
44 lines
780 B
Nix
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" ];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|