2025-03-02 11:53:58 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: let
|
2025-03-02 19:00:20 +00:00
|
|
|
cfg = config.universe.programs.alacritty;
|
2025-03-02 11:53:58 +00:00
|
|
|
in {
|
2025-03-02 19:00:20 +00:00
|
|
|
options.universe.programs.alacritty = {
|
2025-03-02 11:53:58 +00:00
|
|
|
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"];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|