116 lines
2.5 KiB
Nix
116 lines
2.5 KiB
Nix
# Configure my terminal of choice
|
|
{ pkgs, ... }:
|
|
{
|
|
|
|
home.packages = with pkgs; [
|
|
# Font
|
|
nerd-fonts.inconsolata
|
|
nerd-fonts.fira-code
|
|
nerd-fonts.jetbrains-mono
|
|
];
|
|
|
|
home.shellAliases = {
|
|
"p?" = "ps ax | grep";
|
|
};
|
|
|
|
# Allow Home Manager to set fonts.
|
|
fonts.fontconfig.enable = true;
|
|
|
|
programs.wezterm = {
|
|
enable = true;
|
|
enableZshIntegration = true;
|
|
enableBashIntegration = true;
|
|
extraConfig = ''
|
|
local act = wezterm.action;
|
|
return {
|
|
color_scheme = "tokyonight_night",
|
|
window_background_opacity = 0.80,
|
|
font = wezterm.font "FiraCode Nerd Font",
|
|
font_size = 13,
|
|
hide_tab_bar_if_only_one_tab = true,
|
|
-- Keys
|
|
keys = {
|
|
-- paste from the clipboard
|
|
{ key = 'v', mods = 'CTRL|SHIFT', action = act.PasteFrom 'Clipboard' },
|
|
}
|
|
}
|
|
'';
|
|
};
|
|
|
|
home.shellAliases = {
|
|
"imgcat" = "wezterm imgcat";
|
|
};
|
|
|
|
programs.alacritty = {
|
|
enable = true;
|
|
settings = {
|
|
window = {
|
|
blur = true;
|
|
opacity = 0.85;
|
|
};
|
|
|
|
font = {
|
|
normal = {
|
|
family = "FiraCode Nerd Font";
|
|
style = "Regular";
|
|
};
|
|
size = 13;
|
|
};
|
|
|
|
selection.save_to_clipboard = true;
|
|
|
|
colors = {
|
|
## Decay theme
|
|
# Eye Friendly Colors
|
|
# Created by https://github.com/decaycs
|
|
bright = {
|
|
black = "#384148";
|
|
blue = "#8cc1ff";
|
|
cyan = "#90daff";
|
|
green = "#94f7c5";
|
|
magenta = "#e2a6ff";
|
|
red = "#fc7b81";
|
|
white = "#fafdff";
|
|
yellow = "#ffeba6";
|
|
};
|
|
|
|
cursor = {
|
|
cursor = "#f5f5f5";
|
|
text = "CellForeground";
|
|
};
|
|
|
|
normal = {
|
|
black = "#1c252c";
|
|
blue = "#70a5eb";
|
|
cyan = "#74bee9";
|
|
green = "#78dba9";
|
|
magenta = "#c68aee";
|
|
red = "#e05f65";
|
|
white = "#dee1e6";
|
|
yellow = "#f1cf8a";
|
|
};
|
|
|
|
primary = {
|
|
background = "#171a1f";
|
|
foreground = "#b6beca";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
programs.ssh = {
|
|
enable = true;
|
|
matchBlocks = {
|
|
"*" = {
|
|
setEnv = {
|
|
# Alacritty sets it's terminfo to 'alacritty' so that environments can have
|
|
# complete functionality support. However, this doesn't work well when making
|
|
# remove connections. So we set it to 'xterm-256color' which is a more common
|
|
# terminfo.
|
|
"TERM" = "xterm-256color";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|