nixos-config/modules/workstation/home-manager/desktop/alacritty.nix

89 lines
1.9 KiB
Nix

{ config, lib, ... }:
with lib;
let
tmuxFix = {
env = {
TERM = "xterm-256color";
};
};
in
{
programs.alacritty = mkIf config.desktop.enableSwayStack {
enable = true;
settings = {
font = {
normal = {
family = "JetBrainsMono Nerd Font Mono";
style = "Regular";
};
size = 10.0;
};
colors = {
primary = {
background = "#2e3440";
foreground = "#d8dee9";
dim_foreground = "#a5abb6";
};
cursor = {
text = "#2e3440";
cursor = "#d8dee9";
};
vi_mode_cursor = {
text = "#2e3440";
cursor = "#d8dee9";
};
selection = {
text = "CellForeground";
background = "#4c566a";
};
search = {
matches = {
foreground = "CellBackground";
background = "#88c0d0";
};
};
footer_bar = {
background = "#434c5e";
foreground = "#d8dee9";
};
normal = {
black = "#3b4252";
red = "#bf616a";
green = "#a3be8c";
yellow = "#ebcb8b";
blue = "#81a1c1";
magenta = "#b48ead";
cyan = "#88c0d0";
white = "#e5e9f0";
};
bright = {
black = "#4c566a";
red = "#bf616a";
green = "#a3be8c";
yellow = "#ebcb8b";
blue = "#81a1c1";
magenta = "#b48ead";
cyan = "#8fbcbb";
white = "#eceff4";
};
dim = {
black = "#373e4d";
red = "#94545d";
green = "#809575";
yellow = "#b29e75";
blue = "#68809a";
magenta = "#8c738c";
cyan = "#6d96a5";
white = "#aeb3bb";
};
};
window = {
opacity = 1;
};
} // tmuxFix;
};
}