52 lines
898 B
Nix
52 lines
898 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit
|
|
(lib)
|
|
mkEnableOption
|
|
mkIf
|
|
;
|
|
|
|
cfg = config.my.home.alacritty;
|
|
alacrittyTheme = config.my.theme.alacrittyTheme;
|
|
in {
|
|
options.my.home.alacritty.enable = (mkEnableOption "Alacritty terminal") // {default = config.my.home.x.enable;};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.alacritty = {
|
|
enable = true;
|
|
|
|
settings = {
|
|
env = {
|
|
WINIT_X11_SCALE_FACTOR = "1.0";
|
|
};
|
|
|
|
window = {
|
|
padding = {
|
|
x = 8;
|
|
y = 8;
|
|
};
|
|
};
|
|
|
|
font = {
|
|
normal = {
|
|
family = "Iosevka Fixed";
|
|
style = "Medium";
|
|
};
|
|
size = 10.0;
|
|
};
|
|
|
|
colors = alacrittyTheme;
|
|
};
|
|
};
|
|
|
|
home.packages = [pkgs.iosevka-bin];
|
|
|
|
# make sure font is discoverable
|
|
fonts.fontconfig.enable = true;
|
|
};
|
|
}
|