From c95434a3e4735eb6482874910fcda8fadeac7c59 Mon Sep 17 00:00:00 2001 From: Daniel Patterson Date: Thu, 28 Oct 2021 00:11:12 +0100 Subject: [PATCH] Add alacritty config and new font --- user/alacritty/default.nix | 83 ++++++++++++++++++++++++++++++++++++++ user/dingbox/home.nix | 5 ++- 2 files changed, 86 insertions(+), 2 deletions(-) create mode 100644 user/alacritty/default.nix diff --git a/user/alacritty/default.nix b/user/alacritty/default.nix new file mode 100644 index 0000000..d44635c --- /dev/null +++ b/user/alacritty/default.nix @@ -0,0 +1,83 @@ +{ pkgs, ... }: + +{ + programs.alacritty = { + enable = true; + settings = { + font = { + normal = { + family = "Iosevka"; + style = "Regular"; + }; + size = 13; + + colors = { + primary = { + background = "0x282a36"; + foreground = "0xf8f8f2"; + }; + cursor = { + text = "CellBackground"; + cursor = "CellForeground"; + }; + vi_mode_cursor = { + text = "CellBackground"; + cursor = "CellForeground"; + }; + search = { + matches = { + foreground = "0x44475a"; + background = "0x50fa7b"; + }; + focused_match = { + foreground = "0x44475a"; + background = "0xffb86c"; + }; + bar = { + background = "0x282a36"; + foreground = "0xf8f8f2"; + }; + }; + line_indicator = { + foreground = "None"; + background = "None"; + }; + selection = { + text = "CellForeground"; + background = "0x44475a"; + }; + normal = { + black = "0x000000"; + red = "0xff5555"; + green = "0x50fa7b"; + yellow = "0xf1fa8c"; + blue = "0xbd93f9"; + magenta = "0xff79c6"; + cyan = "0x8be9fd"; + white = "0xbfbfbf"; + }; + bright = { + black = "0x4d4d4d"; + red = "0xff6e67"; + green = "0x5af78e"; + yellow = "0xf4f99d"; + blue = "0xcaa9fa"; + magenta = "0xff92d0"; + cyan = "0x9aedfe"; + white = "0xe6e6e6"; + }; + dim = { + black = "0x14151b"; + red = "0xff2222"; + green = "0x1ef956"; + yellow = "0xebf85b"; + blue = "0x4d5b86"; + magenta = "0xff46b0"; + cyan = "0x59dffc"; + white = "0xe6e6d1"; + }; + }; + }; + }; + }; +} diff --git a/user/dingbox/home.nix b/user/dingbox/home.nix index 027a544..455a28a 100644 --- a/user/dingbox/home.nix +++ b/user/dingbox/home.nix @@ -2,6 +2,7 @@ { imports = [ + ../alacritty ../i3 ../neovim ../polybar @@ -19,20 +20,20 @@ services.dunst.enable = true; home.packages =let - i3utils = pkgs.lib.callPackageWith (pkgs) ../i3utils {}; in with pkgs; [ - alacritty chezmoi element-desktop feh fzf go_1_17 + jetbrains.goland i3 i3lock i3utils + iosevka lazygit nerdfonts oh-my-zsh