35 lines
685 B
Nix
35 lines
685 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
{
|
|
options.enableAlacritty = lib.mkEnableOption "Alacritty terminal emulator";
|
|
config = {
|
|
programs.alacritty = {
|
|
enable = config.enableAlacritty;
|
|
settings = {
|
|
font = {
|
|
size = 14.0;
|
|
normal.family = "Cascadia Code";
|
|
};
|
|
terminal.shell = {
|
|
args = [
|
|
"new-session"
|
|
"-A"
|
|
"-s"
|
|
"general"
|
|
];
|
|
program = lib.getExe pkgs.tmux;
|
|
};
|
|
window = {
|
|
decorations = "None";
|
|
opacity = 1;
|
|
startup_mode = "Maximized";
|
|
};
|
|
env.TERM = "xterm-256color";
|
|
};
|
|
};
|
|
};
|
|
}
|