nix-config/modules/home/terminal/alacritty/default.nix
Bruno BELANYI 8b028ce19f home: terminal: rename 'default'
It doesn't make the *most* sense as an option name to use `program`.
2025-09-04 19:47:38 +01:00

53 lines
1.2 KiB
Nix

{ config, lib, ... }:
let
cfg = config.my.home.terminal;
inherit (config.my.home.terminal) colors;
in
{
config = lib.mkIf (cfg.default == "alacritty") {
programs.alacritty = {
enable = true;
settings = {
font = {
size = 5.5;
};
colors = {
primary = {
background = colors.background;
foreground = colors.foreground;
bright_foreground = colors.foregroundBold;
};
cursor = {
cursor = colors.cursor;
};
normal = {
black = colors.black;
red = colors.red;
green = colors.green;
yellow = colors.yellow;
blue = colors.blue;
magenta = colors.magenta;
cyan = colors.cyan;
white = colors.white;
};
bright = {
black = colors.blackBold;
red = colors.redBold;
green = colors.greenBold;
yellow = colors.yellowBold;
blue = colors.blueBold;
magenta = colors.magentaBold;
cyan = colors.cyanBold;
white = colors.whiteBold;
};
};
};
};
};
}