nix-config/modules/home-manager/terminal/alacritty.nix
smayzy 72e91c49fb
All checks were successful
nix flake show / show-flake (push) Successful in 27s
correct some config
2025-07-24 18:19:09 +02:00

47 lines
986 B
Nix

{ smayzy, lib, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.alacritty.enable = mkOption {
type = types.bool;
default = false;
description = "alacritty config";
};
config = mkIf smayzy.alacritty.enable {
programs.alacritty = {
enable = true;
settings = {
window = {
padding = {
x = 5;
y = 5;
};
};
font = {
normal = {
family = "JetBrainsMono Nerd Font";
style = "Medium";
};
bold = {
family = "JetBrainsMono Nerd Font";
style = "Bold";
};
italic = {
family = "JetBrainsMono Nerd Font";
style = "MediumItalic";
};
bold_italic = {
family = "JetBrainsMono Nerd Font";
style = "BoldItalic";
};
};
cursor = {
style = "Underline";
};
};
};
};
}