38 lines
614 B
Nix
38 lines
614 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
{
|
|
options.features.desktop.alacritty.enable = lib.mkEnableOption "Enable Alacritty";
|
|
|
|
config = lib.mkIf config.features.desktop.alacritty.enable {
|
|
programs.alacritty = {
|
|
enable = true;
|
|
|
|
settings = {
|
|
env = {
|
|
TERM = "screen-256color";
|
|
};
|
|
|
|
window.padding = {
|
|
x = 10;
|
|
y = 10;
|
|
};
|
|
|
|
font = {
|
|
size = 12;
|
|
|
|
bold.style = "Regular";
|
|
normal.family = "Terminess Nerd Font Mono";
|
|
};
|
|
|
|
terminal.shell = {
|
|
program = "zsh";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|