45 lines
1.3 KiB
Nix
45 lines
1.3 KiB
Nix
{ pkgs, lib, ... }:
|
|
{
|
|
# Include fonts packages
|
|
home.packages = [ pkgs.extra.font.monospace.package ];
|
|
programs.alacritty = {
|
|
enable = true;
|
|
settings = {
|
|
env.TERM = "xterm-256color";
|
|
scrolling.history = 3000;
|
|
font = {
|
|
normal.family = pkgs.extra.font.monospace.name;
|
|
size = 9.0;
|
|
};
|
|
background_opacity = 0.95;
|
|
mouse = {
|
|
hide_when_typing = true;
|
|
hints.modifiers = "Control";
|
|
};
|
|
|
|
colors = with pkgs.extra; {
|
|
|
|
primary = palette.toRgbHex colorPalette.primary;
|
|
cursor = palette.toRgbHex colorPalette.cursor;
|
|
vi_mode_cursor = palette.toRgbHex colorPalette.vi_mode_cursor;
|
|
selection = {
|
|
text = "CellForeground";
|
|
background = color.toRgbHex colorPalette.dim.blue;
|
|
};
|
|
search = {
|
|
matches = {
|
|
foreground = "CellForeground";
|
|
background = color.toRgbHex colorPalette.dim.cyan;
|
|
};
|
|
bar = {
|
|
# foreground = "CellForeground";
|
|
background = color.toRgbHex colorPalette.dim.yellow;
|
|
};
|
|
};
|
|
normal = palette.toRgbHex colorPalette.normal;
|
|
bright = palette.toRgbHex colorPalette.bright;
|
|
dim = palette.toRgbHex colorPalette.dim;
|
|
};
|
|
};
|
|
};
|
|
}
|