From 20171bae3894a071810a1d51676d062e603c0b2b Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Sun, 1 Jan 2023 23:38:44 +0100 Subject: [PATCH] configured alacritty in nix the generated yaml is unreadable btw lol --- users/rouven/modules/alacritty/alacritty.yml | 66 ---------------- users/rouven/modules/alacritty/default.nix | 82 +++++++++++++++++++- 2 files changed, 80 insertions(+), 68 deletions(-) delete mode 100644 users/rouven/modules/alacritty/alacritty.yml diff --git a/users/rouven/modules/alacritty/alacritty.yml b/users/rouven/modules/alacritty/alacritty.yml deleted file mode 100644 index c0cb248..0000000 --- a/users/rouven/modules/alacritty/alacritty.yml +++ /dev/null @@ -1,66 +0,0 @@ -env: - TERM: xterm-256color -font: - size: 8 - # normal: - # family: SourceCodePro - -shell: - program: '/etc/profiles/per-user/rouven/bin/zsh' - -window: - opacity: 0.7 - -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' - footer_bar: - background: '0x282a36' - foreground: '0xf8f8f2' - line_indicator: - foreground: None - background: None - selection: - text: CellForeground - background: '0x44475a' - normal: - black: '0x21222c' - 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/users/rouven/modules/alacritty/default.nix b/users/rouven/modules/alacritty/default.nix index d08a247..1d755f0 100644 --- a/users/rouven/modules/alacritty/default.nix +++ b/users/rouven/modules/alacritty/default.nix @@ -1,5 +1,83 @@ { config, pkgs, ... }: { - home.packages = with pkgs; [ alacritty ]; - xdg.configFile."alacritty/alacritty.yml".source = ./alacritty.yml; + programs.alacritty = { + enable = true; + settings = { + env = { + TERM = "xterm-256color"; + }; + font = { + size = 8; + }; + shell.program = "${pkgs.zsh}/bin/zsh"; + window.opacity = 0.7; + + colors = { + primary = { + background = "#282a36"; + foreground = "#f8f8f2"; + }; + cursor = { + text = "CellBackground"; + cursor = "CellForeground"; + }; + vi_mode_cursor = { + text = "CellBackground"; + cursor = "CellForeground"; + }; + search = { + matches = { + foreground = "#44475a"; + background = "#50fa7b"; + }; + focused_match = { + foreground = "#44475a"; + background = "#ffb86c"; + }; + footer_bar = { + background = "#282a36"; + foreground = "#f8f8f2"; + }; + }; + line_indicator = { + foreground = null; + background = null; + }; + selection = { + text = "CellForeground"; + background = "#44475a"; + }; + normal = { + black = "#21222c"; + red = "#ff5555"; + green = "#50fa7b"; + yellow = "#f1fa8c"; + blue = "#bd93f9"; + magenta = "#ff79c6"; + cyan = "#8be9fd"; + white = "#bfbfbf"; + }; + bright = { + black = "#4d4d4d"; + red = "#ff6e67"; + green = "#5af78e"; + yellow = "#f4f99d"; + blue = "#caa9fa"; + magenta = "#ff92d0"; + cyan = "#9aedfe"; + white = "#e6e6e6"; + }; + dim = { + black = "#14151b"; + red = "#ff2222"; + green = "#1ef956"; + yellow = "#ebf85b"; + blue = "#4d5b86"; + magenta = "#ff46b0"; + cyan = "#59dffc"; + white = "#e6e6d1"; + }; + }; + }; + }; }