home: switch font to Iosevka for emacs/term

This commit is contained in:
Antoine Martin 2021-04-22 16:52:10 +02:00
parent b538eec36f
commit ee7f2eb7bd
2 changed files with 25 additions and 16 deletions

View file

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ config, lib, pkgs, ... }:
let
cfg = config.my.home.alacritty;
alacrittyTheme = config.my.theme.alacrittyTheme;
@ -6,7 +6,8 @@ in
{
options.my.home.alacritty.enable = lib.mkEnableOption "Alacritty terminal";
config.programs.alacritty = lib.mkIf cfg.enable {
config = lib.mkIf cfg.enable {
programs.alacritty = {
enable = true;
settings = {
@ -19,12 +20,20 @@ in
font = {
normal = {
family = "Input Mono Narrow";
family = "Iosevka Fixed";
style = "Medium";
};
size = 9.0;
size = 10.0;
};
colors = alacrittyTheme;
};
};
home.packages = with pkgs; [
iosevka-bin
];
# make sure font is discoverable
fonts.fontconfig.enable = true;
};
}

View file

@ -9,8 +9,8 @@
sqlite # needed by org-roam
# fonts used by my config
input-fonts
emacs-all-the-icons-fonts
iosevka-bin
];
# make sure above fonts are discoverable
fonts.fontconfig.enable = true;