System/home-manager/common/programs/terminal.nix

60 lines
1.5 KiB
Nix
Raw Normal View History

{ config, lib, pkgs, inputs, ... }:
let nathan = config.nathan;
in with lib; {
config = mkIf nathan.programs.alacritty {
2023-09-10 16:17:41 -04:00
home.packages = with pkgs; [
# Terminal
alacritty
2023-09-14 21:08:10 -04:00
#gtkterm
2023-09-10 16:17:41 -04:00
];
#########################
## Alacritty
#########################
programs.alacritty = {
enable = true;
settings = {
env = {
TERM = "xterm-256color";
ALACRITTY = "1";
};
font = {
2023-05-30 09:18:20 -04:00
normal.family = "Iosevka Nerd Font";
bold.family = "Iosevka Nerd Font";
italic.family = "Iosevka Nerd Font";
bold_italic.family = "Iosevka Nerd Font";
# Bigger on darwin
2023-03-14 12:42:56 -04:00
size = if pkgs.stdenv.isLinux then 10.0 else 12.0;
};
2023-06-16 23:50:43 -04:00
window = { opacity = 0.9; };
colors = {
primary = {
2022-11-09 21:30:14 -05:00
background = "0x181818";
foreground = "0xb9b9b9";
};
normal = {
2022-11-09 21:30:14 -05:00
black = "0x252525";
red = "0xed4a46";
green = "0x70b433";
yellow = "0xdbb32d";
2022-11-09 21:30:14 -05:00
blue = "0x368aeb";
magenta = "0xeb6eb7";
cyan = "0x3fc5b7";
white = "0xdedede";
};
bright = {
2022-11-09 21:30:14 -05:00
black = "0x252525";
red = "0xed4a46";
green = "0x70b433";
yellow = "0xdbb32d";
blue = "0x368aeb";
magenta = "0xeb6eb7";
cyan = "0x3fc5b7";
white = "0xdedede";
};
2023-06-16 23:50:43 -04:00
transparent_background_colors = true;
};
};
};
};
}