nixos-config/modules/fonts/default.nix

53 lines
1 KiB
Nix
Raw Normal View History

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
iosevka-aile = pkgs.iosevka-bin.override { variant = "Aile"; };
in
{
options.eboskma.fonts = {
enable = mkEnableOption "activate fonts";
};
2021-11-21 19:07:12 +01:00
config = mkIf cfg.enable {
fonts = {
fontDir.enable = true;
2025-01-09 14:59:30 +01:00
packages = with pkgs; [
nerd-fonts.iosevka
nerd-fonts.meslo-lg
nerd-fonts.monaspace
nerd-fonts.noto
nerd-fonts.recursive-mono
cantarell-fonts
corefonts
dejavu_fonts
google-fonts
kochi-substitute
material-icons
monaspace
noto-fonts-emoji
recursive
ttf_bitstream_vera
twitter-color-emoji
iosevka-aile
];
2021-11-21 19:07:12 +01:00
fontconfig = {
defaultFonts = {
serif = [ "Recursive Sans Casual Static Medium" ];
2025-01-09 14:59:30 +01:00
sansSerif = [ "Cantarell Regular" ];
monospace = [ "Iosevka Nerd Font" ];
2023-01-13 10:30:49 +01:00
emoji = [ "Twitter Color Emoji" ];
2021-11-21 19:07:12 +01:00
};
};
};
};
}