universe/home/programs/graphical/alacritty.nix
2025-03-02 17:14:39 +05:00

37 lines
643 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.glyph_offset = {
x = 0;
y = 0;
};
window = {
padding = {
x = 10;
y = 10;
};
dynamic_padding = true;
};
terminal.shell = {
program = "tmux";
args = ["new"];
};
};
};
};
}