dotfiles/nixos/modules/fonts.nix
2025-01-08 01:05:45 -06:00

30 lines
520 B
Nix
Executable file

{
pkgs,
flake,
...
}: let
inherit (flake.config.aesthetics.themes.theme) font;
in {
fonts = {
fontconfig = {
enable = true;
defaultFonts = {
serif = [font];
monospace = [font];
sansSerif = [font];
emoji = ["Noto Fonts Color Emoji"];
};
antialias = true;
};
packages = builtins.attrValues {
inherit
(pkgs)
noto-fonts-color-emoji
;
inherit
(pkgs.nerd-fonts)
monaspace
;
};
};
}