Added font config

This commit is contained in:
alejandro-angulo 2024-08-03 16:16:43 -07:00
parent ce64b0ca1b
commit df62cf69ac
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{
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"];
};
};
};
}

View file

@ -39,6 +39,7 @@ in {
config = mkIf cfg.enable {
${namespace} = {
fonts.enable = true;
programs = {
kitty.enable = true;
rofi.enable = true;