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

60 lines
1.5 KiB
Nix

{ config, lib, pkgs, inputs, ... }:
let nathan = config.nathan;
in with lib; {
config = mkIf nathan.programs.alacritty {
home.packages = with pkgs; [
# Terminal
alacritty
gtkterm
];
#########################
## Alacritty
#########################
programs.alacritty = {
enable = true;
settings = {
env = {
TERM = "xterm-256color";
ALACRITTY = "1";
};
font = {
normal.family = "Iosevka Nerd Font";
bold.family = "Iosevka Nerd Font";
italic.family = "Iosevka Nerd Font";
bold_italic.family = "Iosevka Nerd Font";
# Bigger on darwin
size = if pkgs.stdenv.isLinux then 10.0 else 12.0;
};
window = { opacity = 0.9; };
colors = {
primary = {
background = "0x181818";
foreground = "0xb9b9b9";
};
normal = {
black = "0x252525";
red = "0xed4a46";
green = "0x70b433";
yellow = "0xdbb32d";
blue = "0x368aeb";
magenta = "0xeb6eb7";
cyan = "0x3fc5b7";
white = "0xdedede";
};
bright = {
black = "0x252525";
red = "0xed4a46";
green = "0x70b433";
yellow = "0xdbb32d";
blue = "0x368aeb";
magenta = "0xeb6eb7";
cyan = "0x3fc5b7";
white = "0xdedede";
};
transparent_background_colors = true;
};
};
};
};
}