dotfiles/modules/home/fonts/default.nix

32 lines
583 B
Nix
Raw Normal View History

2024-08-03 23:16:43 +00:00
{
config,
lib,
pkgs,
namespace,
...
}: let
cfg = config.${namespace}.fonts;
in {
options.${namespace}.fonts = {
enable = lib.mkEnableOption "font config";
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
(nerdfonts.override {fonts = ["Hack"];})
noto-fonts
noto-fonts-color-emoji
];
fonts.fontconfig = {
enable = true;
defaultFonts = {
monospace = ["Hack Nerd Font"];
emoji = ["Noto Color Emoji"];
serif = ["Noto Serif"];
sansSerif = ["Noto Sans"];
};
};
};
}