2022-04-27 00:21:19 +02:00
|
|
|
{ lib
|
|
|
|
, pkgs
|
|
|
|
, config
|
|
|
|
, ...
|
2022-03-01 22:19:03 +01:00
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.eboskma.fonts;
|
2022-04-27 00:21:19 +02:00
|
|
|
in
|
|
|
|
{
|
|
|
|
options.eboskma.fonts = { enable = mkEnableOption "activate fonts"; };
|
2021-11-21 19:07:12 +01:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
fonts = {
|
|
|
|
fontDir.enable = true;
|
|
|
|
|
|
|
|
fonts = with pkgs; [
|
2022-10-05 11:30:48 +02:00
|
|
|
(nerdfonts.override { fonts = [ "CascadiaCode" "DroidSansMono" "FiraCode" "Iosevka" "Monoid" "Meslo" "Noto" "SourceCodePro" ]; })
|
2021-11-21 19:07:12 +01:00
|
|
|
dejavu_fonts
|
2021-11-22 18:56:59 +01:00
|
|
|
google-fonts
|
2021-11-21 19:07:12 +01:00
|
|
|
kochi-substitute
|
2021-12-06 09:58:39 +01:00
|
|
|
material-icons
|
2021-11-21 19:07:12 +01:00
|
|
|
noto-fonts-emoji
|
|
|
|
corefonts
|
|
|
|
recursive
|
|
|
|
ttf_bitstream_vera
|
|
|
|
];
|
|
|
|
|
|
|
|
fontconfig = {
|
|
|
|
defaultFonts = {
|
2022-04-27 00:21:19 +02:00
|
|
|
serif = [ "Recursive Sans Casual Static Medium" ];
|
|
|
|
sansSerif = [ "Recursive Sans Linear Static Medium" ];
|
|
|
|
monospace = [ "Iosevka Nerd Font" ];
|
|
|
|
emoji = [ "Noto Color Emoji" ];
|
2021-11-21 19:07:12 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|