89 lines
2.0 KiB
Nix
89 lines
2.0 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib) mkIf mkEnableOption;
|
|
cfg = config.modules.terminal.alacritty;
|
|
in {
|
|
options = {
|
|
modules.terminal.alacritty.enable = mkEnableOption "Enables firefox";
|
|
};
|
|
config = mkIf cfg.enable {
|
|
home.sessionVariables.TERMINAL = "alacritty";
|
|
programs.alacritty = {
|
|
enable = true;
|
|
settings = {
|
|
# Default colors
|
|
colors.primary = {
|
|
background = "#282828";
|
|
foreground = "#d4be98";
|
|
};
|
|
colors = {
|
|
# Normal colors
|
|
normal = {
|
|
black = "#3c3836";
|
|
red = "#ea6962";
|
|
green = "#a9b665";
|
|
yellow = "#d8a657";
|
|
blue = "#7daea3";
|
|
magenta = "#d3869b";
|
|
cyan = "#89b482";
|
|
white = "#d4be98";
|
|
};
|
|
# Bright colors (same as normal colors)
|
|
bright = {
|
|
black = "#3c3836";
|
|
red = "#ea6962";
|
|
green = "#a9b665";
|
|
yellow = "#d8a657";
|
|
blue = "#7daea3";
|
|
magenta = "#d3869b";
|
|
cyan = "#89b482";
|
|
white = "#d4be98";
|
|
};
|
|
};
|
|
font = {
|
|
size = 12;
|
|
normal = {
|
|
family = "Input Mono Compressed";
|
|
style = "Light";
|
|
};
|
|
bold = {
|
|
family = "Input Mono Compressed";
|
|
style = "Regular";
|
|
};
|
|
italic = {
|
|
family = "Input Mono Compressed";
|
|
style = "Italic";
|
|
};
|
|
};
|
|
keyboard.bindings = [
|
|
{
|
|
action = "Copy";
|
|
key = "C";
|
|
mods = "Command";
|
|
}
|
|
{
|
|
action = "Paste";
|
|
key = "V";
|
|
mods = "Command";
|
|
}
|
|
];
|
|
window = {
|
|
dynamic_title = true;
|
|
opacity = 0.9;
|
|
padding = {
|
|
x = 5;
|
|
y = 5;
|
|
};
|
|
dimensions = {
|
|
columns = 120;
|
|
lines = 35;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|