nixos-config/modules/applications/alacritty.nix

45 lines
882 B
Nix

{ config, pkgs, lib, ... }:
{
home-manager.users.balsoft.programs.alacritty = {
enable = true;
settings = {
font = rec {
normal.family = config.themes.fonts.mono.family;
size = config.themes.fonts.mono.size;
bold = { style = "Bold"; };
};
window.padding = {
x = 2;
y = 2;
};
shell.program = "${pkgs.zsh}/bin/zsh";
cursor.style = "Beam";
colors = with pkgs.my-lib.thmHash; {
primary = {
background = base00;
foreground = base05;
};
cursor = {
text = base02;
cursor = base00;
};
normal = {
black = base00;
red = base08;
green = base0B;
yellow = base0A;
blue = base0D;
magenta = base0E;
white = base07;
};
};
};
};
}