NixOS-Configuration/common/users/cameron/home-manager/alacritty.nix

32 lines
621 B
Nix
Raw Normal View History

{ pkgs, lib, inputs, config, osConfig, ... }:
{
programs.alacritty = {
2024-02-06 06:40:43 +00:00
enable = (config.term == "alacritty");
settings = {
window = {
opacity = 0.95;
dynamic_padding = true;
};
2024-02-06 06:40:43 +00:00
colors.primary = {
foreground = "#cccccc";
background = "#333333";
};
cursor = {
2024-02-06 06:40:43 +00:00
style.blinking = "On";
blink_interval = 500;
blink_timeout = 15;
};
mouse = {
hide_when_typing = true;
};
};
};
runInTerm = if (config.term == "alacritty") then "${pkgs.alacritty}/bin/alacritty -e" else lib.mkDefault "";
}