38 lines
893 B
Nix
38 lines
893 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
config,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.eboskma.fonts;
|
|
in {
|
|
options.eboskma.fonts = {enable = mkEnableOption "activate fonts";};
|
|
|
|
config = mkIf cfg.enable {
|
|
fonts = {
|
|
fontDir.enable = true;
|
|
|
|
fonts = with pkgs; [
|
|
(nerdfonts.override {fonts = ["CascadiaCode" "DroidSansMono" "FantasqueSansMono" "FiraCode" "Iosevka" "JetBrainsMono" "Meslo" "Noto" "SourceCodePro"];})
|
|
dejavu_fonts
|
|
google-fonts
|
|
kochi-substitute
|
|
material-icons
|
|
noto-fonts-emoji
|
|
corefonts
|
|
recursive
|
|
ttf_bitstream_vera
|
|
];
|
|
|
|
fontconfig = {
|
|
defaultFonts = {
|
|
serif = ["Recursive Sans Casual Static Medium"];
|
|
sansSerif = ["Recursive Sans Linear Static Medium"];
|
|
monospace = ["Iosevka Nerd Font"];
|
|
emoji = ["Noto Color Emoji"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|