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 let
cfg = config.my.home.alacritty; cfg = config.my.home.alacritty;
alacrittyTheme = config.my.theme.alacrittyTheme; alacrittyTheme = config.my.theme.alacrittyTheme;
@ -6,25 +6,34 @@ in
{ {
options.my.home.alacritty.enable = lib.mkEnableOption "Alacritty terminal"; options.my.home.alacritty.enable = lib.mkEnableOption "Alacritty terminal";
config.programs.alacritty = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
enable = true; programs.alacritty = {
enable = true;
settings = { settings = {
window = { window = {
padding = { padding = {
x = 8; x = 8;
y = 8; y = 8;
};
}; };
};
font = { font = {
normal = { normal = {
family = "Input Mono Narrow"; family = "Iosevka Fixed";
style = "Medium";
};
size = 10.0;
}; };
size = 9.0;
};
colors = alacrittyTheme; 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 sqlite # needed by org-roam
# fonts used by my config # fonts used by my config
input-fonts
emacs-all-the-icons-fonts emacs-all-the-icons-fonts
iosevka-bin
]; ];
# make sure above fonts are discoverable # make sure above fonts are discoverable
fonts.fontconfig.enable = true; fonts.fontconfig.enable = true;