home: Add alacritty

restic-rest-server
Simon Bruder 2020-11-07 11:19:41 +01:00
parent a5aa8ddc9c
commit 630250b3ef
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
2 changed files with 79 additions and 0 deletions

View File

@ -29,6 +29,10 @@ in
home-manager.useGlobalPkgs = true;
home-manager.users.simon = { pkgs, ... }: {
imports = [
./modules/alacritty.nix
];
gtk = {
enable = true;
font.name = "sans-serif 10";

View File

@ -0,0 +1,75 @@
let
colorschemes = {
# https://github.com/alacritty/alacritty/wiki/Color-schemes#solarized
solarized-dark = {
# Default colors
primary = {
background = "#002b36"; # base03
foreground = "#839496"; # base0
};
# Cursor colors
cursor = {
text = "#002b36"; # base03
cursor = "#839496"; # base0
};
# Normal colors
normal = {
black = "#073642"; # base02
red = "#dc322f"; # red
green = "#859900"; # green
yellow = "#b58900"; # yellow
blue = "#268bd2"; # blue
magenta = "#d33682"; # magenta
cyan = "#2aa198"; # cyan
white = "#eee8d5"; # base2
};
# Bright colors
bright = {
black = "#002b36"; # base03
red = "#cb4b16"; # orange
green = "#586e75"; # base01
yellow = "#657b83"; # base00
blue = "#839496"; # base0
magenta = "#6c71c4"; # violet
cyan = "#93a1a1"; # base1
white = "#fdf6e3"; # base3
};
};
};
in
{
programs.alacritty = {
enable = true;
settings = {
font = {
normal = {
family = "Iosevka Nerd Font";
style = "Regular";
};
size = 13.5;
};
mouse.hide_when_typing = true;
key_bindings = [
{
key = "V";
mods = "Control|Alt";
action = "Paste";
}
{
key = "C";
mods = "Control|Alt";
action = "Copy";
}
];
bell.duration = 100;
colors = colorschemes.solarized-dark;
};
};
}