mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 22:03:55 -05:00
41 lines
1 KiB
Nix
41 lines
1 KiB
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
options = {
|
|
alyraffauf.apps.alacritty.enable = lib.mkEnableOption "Enables alacritty.";
|
|
};
|
|
|
|
config = lib.mkIf config.alyraffauf.apps.alacritty.enable {
|
|
programs.alacritty = {
|
|
enable = true;
|
|
settings = {
|
|
colors = {
|
|
primary = {
|
|
foreground = "${config.alyraffauf.desktop.theme.colors.text}";
|
|
background = "${config.alyraffauf.desktop.theme.colors.background}";
|
|
};
|
|
transparent_background_colors = true;
|
|
draw_bold_text_with_bright_colors = true;
|
|
};
|
|
font = {
|
|
normal = {
|
|
family = "${config.alyraffauf.desktop.theme.terminalFont.name}";
|
|
style = "Regular";
|
|
};
|
|
size = config.alyraffauf.desktop.theme.terminalFont.size;
|
|
};
|
|
selection.save_to_clipboard = true;
|
|
window = {
|
|
blur = true;
|
|
# decorations = "None";
|
|
dynamic_padding = true;
|
|
opacity = 0.8;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|