123 lines
3.2 KiB
Nix
123 lines
3.2 KiB
Nix
{ pkgs, lib, config, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.dadada.home.alacritty;
|
|
in
|
|
{
|
|
options.dadada.home.alacritty = {
|
|
enable = mkEnableOption "Enable alacritty config";
|
|
};
|
|
config = mkIf cfg.enable {
|
|
home.packages = with pkgs; [
|
|
jetbrains-mono
|
|
];
|
|
programs.alacritty = {
|
|
enable = true;
|
|
settings = {
|
|
scrolling.history = 0;
|
|
font = {
|
|
size = 8;
|
|
normal = {
|
|
family = "Source Code Pro";
|
|
style = "Regular";
|
|
};
|
|
bold = {
|
|
family = "Source Code Pro";
|
|
style = "Bold";
|
|
};
|
|
italic = {
|
|
family = "Source Code Pro";
|
|
style = "Italic";
|
|
};
|
|
bold_italic = {
|
|
family = "Source Code Pro";
|
|
style = "Bold Italic";
|
|
};
|
|
};
|
|
shell.program = "tmux";
|
|
window.decorations = "none";
|
|
# XTerm's default colors
|
|
colors = {
|
|
primary = {
|
|
background = "#ffffff";
|
|
foreground = "#000000";
|
|
};
|
|
# Colors the cursor will use if `custom_cursor_colors` is true
|
|
cursor = {
|
|
text = "#ffffff";
|
|
cursor = "#000000";
|
|
};
|
|
normal = {
|
|
black = "#000000";
|
|
red = "#cd0000";
|
|
green = "#00cd00";
|
|
yellow = "#cdcd00";
|
|
blue = "#0000ee";
|
|
magenta = "#cd00cd";
|
|
cyan = "#00cdcd";
|
|
white = "#e5e5e5";
|
|
};
|
|
|
|
bright = {
|
|
black = "#7f7f7f";
|
|
red = "#ff0000";
|
|
green = "#00ff00";
|
|
yellow = "#ffff00";
|
|
blue = "#5c5cff";
|
|
magenta = "#ff00ff";
|
|
cyan = "#00ffff";
|
|
white = "#ffffff";
|
|
};
|
|
};
|
|
#colors = {
|
|
# # Base16 Spacemacs 256 - alacritty color config
|
|
# # Nasser Alshammari (https://github.com/nashamri/spacemacs-theme)
|
|
# # Default colors
|
|
# primary = {
|
|
# background = "0x1f2022";
|
|
# foreground = "0xa3a3a3";
|
|
# };
|
|
|
|
# # Colors the cursor will use if `custom_cursor_colors` is true
|
|
# cursor = {
|
|
# text = "0x1f2022";
|
|
# cursor = "0xa3a3a3";
|
|
# };
|
|
|
|
# # Normal colors
|
|
# normal = {
|
|
# black = "0x1f2022";
|
|
# red = "0xf2241f";
|
|
# green = "0x67b11d";
|
|
# yellow = "0xb1951d";
|
|
# blue = "0x4f97d7";
|
|
# magenta = "0xa31db1";
|
|
# cyan = "0x2d9574";
|
|
# white = "0xa3a3a3";
|
|
# };
|
|
|
|
# # Bright colors
|
|
# bright = {
|
|
# black = "0x585858";
|
|
# red = "0xf2241f";
|
|
# green = "0x67b11d";
|
|
# yellow = "0xb1951d";
|
|
# blue = "0x4f97d7";
|
|
# magenta = "0xa31db1";
|
|
# cyan = "0x2d9574";
|
|
# white = "0xf8f8f8";
|
|
# };
|
|
|
|
# indexed_colors = [
|
|
# { index = 16; color = "0xffa500"; }
|
|
# { index = 17; color = "0xb03060"; }
|
|
# { index = 18; color = "0x282828"; }
|
|
# { index = 19; color = "0x444155"; }
|
|
# { index = 20; color = "0xb8b8b8"; }
|
|
# { index = 21; color = "0xe8e8e8"; }
|
|
# ];
|
|
#};
|
|
};
|
|
};
|
|
};
|
|
}
|