37 lines
661 B
Nix
37 lines
661 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: let
|
|
cfg = config.universe.programs.alacritty;
|
|
in {
|
|
options.universe.programs.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"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|