2024-02-05 11:46:52 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
2022-03-01 22:19:03 +01:00
|
|
|
}:
|
2024-02-05 11:46:52 +01:00
|
|
|
with lib;
|
|
|
|
let
|
2022-03-01 22:19:03 +01:00
|
|
|
cfg = config.eboskma.fonts;
|
2023-01-13 10:30:49 +01:00
|
|
|
|
2024-06-17 12:03:52 +02:00
|
|
|
iosevka-aile = pkgs.iosevka-bin.override { variant = "Aile"; };
|
2022-04-27 00:21:19 +02:00
|
|
|
in
|
|
|
|
{
|
2023-05-21 17:12:46 +02:00
|
|
|
options.eboskma.fonts = {
|
|
|
|
enable = mkEnableOption "activate fonts";
|
|
|
|
iosevka-aile = mkOption {
|
|
|
|
description = "Install Iosevka Aile";
|
|
|
|
type = types.bool;
|
|
|
|
default = true;
|
|
|
|
};
|
|
|
|
};
|
2021-11-21 19:07:12 +01:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
fonts = {
|
|
|
|
fontDir.enable = true;
|
|
|
|
|
2024-02-05 11:46:52 +01:00
|
|
|
packages =
|
|
|
|
with pkgs;
|
|
|
|
[
|
2024-12-02 14:52:10 +01:00
|
|
|
nerd-fonts.iosevka
|
|
|
|
nerd-fonts.meslo-lg
|
|
|
|
nerd-fonts.monaspace
|
|
|
|
nerd-fonts.noto
|
|
|
|
nerd-fonts.recursive-mono
|
2024-02-05 11:46:52 +01:00
|
|
|
corefonts
|
|
|
|
dejavu_fonts
|
|
|
|
google-fonts
|
|
|
|
kochi-substitute
|
|
|
|
material-icons
|
|
|
|
monaspace
|
|
|
|
noto-fonts-emoji
|
2024-09-10 19:27:30 +02:00
|
|
|
recursive
|
2024-02-05 11:46:52 +01:00
|
|
|
ttf_bitstream_vera
|
|
|
|
twitter-color-emoji
|
|
|
|
]
|
|
|
|
++ lib.optional cfg.iosevka-aile iosevka-aile;
|
2021-11-21 19:07:12 +01:00
|
|
|
|
|
|
|
fontconfig = {
|
|
|
|
defaultFonts = {
|
2022-04-27 00:21:19 +02:00
|
|
|
serif = [ "Recursive Sans Casual Static Medium" ];
|
2023-05-21 17:12:46 +02:00
|
|
|
sansSerif = [ (if cfg.iosevka-aile then "Iosevka Aile" else "DejaVu Sans") ];
|
2022-04-27 00:21:19 +02:00
|
|
|
monospace = [ "Iosevka Nerd Font" ];
|
2023-01-13 10:30:49 +01:00
|
|
|
emoji = [ "Twitter Color Emoji" ];
|
2021-11-21 19:07:12 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|