Link: https://github.com/nix-community/stylix/pull/1332 Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
70 lines
1.5 KiB
Nix
70 lines
1.5 KiB
Nix
# Documentation is available at:
|
|
# - https://alacritty.org/config-alacritty.html
|
|
# - `man 5 alacritty`
|
|
{ mkTarget, ... }:
|
|
mkTarget {
|
|
name = "alacritty";
|
|
humanName = "Alacritty";
|
|
configElements = [
|
|
(
|
|
{ colors }:
|
|
{
|
|
programs.alacritty.settings.colors = with colors.withHashtag; {
|
|
primary = {
|
|
foreground = base05;
|
|
background = base00;
|
|
bright_foreground = base07;
|
|
};
|
|
selection = {
|
|
text = base05;
|
|
background = base02;
|
|
};
|
|
cursor = {
|
|
text = base00;
|
|
cursor = base05;
|
|
};
|
|
normal = {
|
|
black = base00;
|
|
white = base05;
|
|
inherit
|
|
red
|
|
green
|
|
yellow
|
|
blue
|
|
magenta
|
|
cyan
|
|
;
|
|
};
|
|
bright = {
|
|
black = base03;
|
|
white = base07;
|
|
red = bright-red;
|
|
green = bright-green;
|
|
yellow = bright-yellow;
|
|
blue = bright-blue;
|
|
magenta = bright-magenta;
|
|
cyan = bright-cyan;
|
|
};
|
|
};
|
|
}
|
|
)
|
|
(
|
|
{ fonts }:
|
|
{
|
|
programs.alacritty.settings.font = {
|
|
normal = {
|
|
family = fonts.monospace.name;
|
|
style = "Regular";
|
|
};
|
|
size = fonts.sizes.terminal;
|
|
};
|
|
}
|
|
)
|
|
(
|
|
{ opacity }:
|
|
{
|
|
programs.alacritty.settings.window.opacity = opacity.terminal;
|
|
}
|
|
)
|
|
];
|
|
}
|