universe/home/alacritty/default.nix
2025-03-02 16:53:58 +05:00

44 lines
959 B
Nix

{
lib,
config,
...
}: let
cfg = config.universe.alacritty;
in {
options.universe.alacritty = {
enable = lib.mkEnableOption "alacritty terminal";
};
config = lib.mkIf cfg.enable {
programs.alacritty = {
enable = true;
settings = {
general = {live_config_reload = true;};
# font = {
# normal = { family = "JetBrainsMono Nerd Font Mono"; style = "Regular"; };
# bold = { family = "JetBrainsMono Nerd Font Mono"; style = "Bold"; };
# italic = { family = "JetBrainsMono Nerd Font Mono"; style = "Italic"; };
# size = 14;
# };
font.glyph_offset = {
x = 0;
y = 0;
};
window = {
padding = {
x = 10;
y = 10;
};
dynamic_padding = true;
};
terminal.shell = {
program = "tmux";
args = ["new"];
};
};
};
};
}