nichts/modules/style/fonts.nix

36 lines
912 B
Nix
Raw Normal View History

2024-08-16 10:10:25 +02:00
{
config,
lib,
pkgs,
...
}: let
inherit (config.modules.system.fonts) extraFonts;
2024-08-16 22:46:01 +02:00
inherit (config.modules.other.system) username;
2024-08-16 10:10:25 +02:00
in {
# A (somewhat) sane list of default fonts to be installed.
2024-08-20 16:43:24 +02:00
fonts.packages = with pkgs;
[
etBook
material-design-icons
papirus-icon-theme
(nerdfonts.override {fonts = ["ComicShannsMono"];}) # ComicShanns my beloved
noto-fonts
noto-fonts-cjk-sans
noto-fonts-cjk-serif
noto-fonts-color-emoji
corefonts
]
++ extraFonts;
# this fixes emoji stuff
2024-08-16 22:46:01 +02:00
home-manager.users.${username} = {
2024-08-16 23:31:12 +02:00
fonts.fontconfig = {
2024-08-16 22:46:01 +02:00
defaultFonts = {
monospace = ["ComicShannsMono Nerd Font" "Noto Color Emoji"];
sansSerif = ["ComicShannsMono Nerd Font" "Noto Color Emoji"];
serif = ["ComicShannsMono Nerd Font" "Noto Color Emoji"];
emoji = ["Noto Color Emoji"];
};
};
};
2024-08-16 10:10:25 +02:00
}