nix-config/modules/home-manager/terminal/alacritty.nix
smayzy e5394dde16
All checks were successful
nix flake show / show-flake (push) Successful in 27s
test alacritty as default on laptop
2025-07-24 17:59:39 +02:00

49 lines
1.0 KiB
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";
};
};
# colors = {
# primary = {
# background = "#000000";
# };
# };
};
};
};
}