From ed0a15c9f8cbe2679cd5594a6aa855acb42b9f55 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Fri, 13 Dec 2024 09:25:01 +0100 Subject: [PATCH] Move Alacritty configuration to user-specific Nix home module. The Alacritty configuration was relocated from the darwin module to the user's specific home module. This improves modularity and allows for user-specific customization of the terminal settings. --- homes/aarch64-darwin/harald@m4/default.nix | 46 ++++++++++++++++++++++ modules/darwin/tools/alacritty/default.nix | 46 ---------------------- 2 files changed, 46 insertions(+), 46 deletions(-) diff --git a/homes/aarch64-darwin/harald@m4/default.nix b/homes/aarch64-darwin/harald@m4/default.nix index 663a7e1..0493ac6 100644 --- a/homes/aarch64-darwin/harald@m4/default.nix +++ b/homes/aarch64-darwin/harald@m4/default.nix @@ -34,4 +34,50 @@ }; }; + xdg.configFile."alacritty/alacritty.toml".source = + (pkgs.formats.toml { }).generate "alacritty-config" + { + font = { + normal.family = "JetBrainsMono Nerd Font"; + size = 17; + }; + + # Color theme ported from iTerm 2 Smoooooth + colors.primary = { + foreground = "#dbdbdb"; + background = "#14191e"; + }; + + colors.cursor = { + text = "#000000"; + cursor = "#fefffe"; + }; + + colors.selection = { + text = "#000000"; + background = "#b3d7ff"; + }; + + colors.normal = { + black = "#14191e"; + red = "#b43c29"; + green = "#00c200"; + yellow = "#c7c400"; + blue = "#2743c7"; + magenta = "#bf3fbd"; + cyan = "#00c5c7"; + white = "#c7c7c7"; + }; + + colors.bright = { + black = "#676767"; + red = "#dc7974"; + green = "#57e690"; + yellow = "#ece100"; + blue = "#a6aaf1"; + magenta = "#e07de0"; + cyan = "#5ffdff"; + white = "#feffff"; + }; + }; } diff --git a/modules/darwin/tools/alacritty/default.nix b/modules/darwin/tools/alacritty/default.nix index d6f1d6b..31aa0fa 100644 --- a/modules/darwin/tools/alacritty/default.nix +++ b/modules/darwin/tools/alacritty/default.nix @@ -16,51 +16,5 @@ in config = mkIf cfg.enable { environment.systemPackages = with pkgs; [ alacritty ]; - xdg.configFile."alacritty/alacritty.toml".source = - (pkgs.formats.toml { }).generate "alacritty-config" - { - font = { - normal.family = "JetBrainsMono Nerd Font"; - size = 17; - }; - - # Color theme ported from iTerm 2 Smoooooth - colors.primary = { - foreground = "#dbdbdb"; - background = "#14191e"; - }; - - colors.cursor = { - text = "#000000"; - cursor = "#fefffe"; - }; - - colors.selection = { - text = "#000000"; - background = "#b3d7ff"; - }; - - colors.normal = { - black = "#14191e"; - red = "#b43c29"; - green = "#00c200"; - yellow = "#c7c400"; - blue = "#2743c7"; - magenta = "#bf3fbd"; - cyan = "#00c5c7"; - white = "#c7c7c7"; - }; - - colors.bright = { - black = "#676767"; - red = "#dc7974"; - green = "#57e690"; - yellow = "#ece100"; - blue = "#a6aaf1"; - magenta = "#e07de0"; - cyan = "#5ffdff"; - white = "#feffff"; - }; - }; }; }