From 5e422e78132e5c7c031702989b5e6e086b34e194 Mon Sep 17 00:00:00 2001 From: DannyDannyDanny Date: Thu, 11 Sep 2025 15:02:31 +0200 Subject: [PATCH] feat: add Alacritty terminal configuration to Home Manager :sparkles: --- nixos/home/danny/home.nix | 36 ++++++++++++++++++++++++++++++++++++ nixos/hosts/macos.nix | 1 + 2 files changed, 37 insertions(+) diff --git a/nixos/home/danny/home.nix b/nixos/home/danny/home.nix index 66dc927..d3ff714 100644 --- a/nixos/home/danny/home.nix +++ b/nixos/home/danny/home.nix @@ -121,6 +121,42 @@ ]; }; + # Alacritty terminal configuration (managed by Home Manager) + programs.alacritty = { + enable = true; + settings = { + window = { + padding = { x = 8; y = 8; }; + dynamic_padding = true; + decorations = "buttonless"; + opacity = 0.95; + }; + scrolling = { history = 10000; multiplier = 3; }; + font = { + normal = { family = "JetBrainsMono Nerd Font"; style = "Regular"; }; + bold = { family = "JetBrainsMono Nerd Font"; style = "Bold"; }; + italic = { family = "JetBrainsMono Nerd Font"; style = "Italic"; }; + size = 13.0; + }; + cursor = { style = "Block"; unfocused_hollow = true; }; + shell = { + program = "${pkgs.fish}/bin/fish"; + }; + colors = { + # Catppuccin Mocha palette + primary = { background = "0x1e1e2e"; foreground = "0xcdd6f4"; }; + normal = { + black = "0x45475a"; red = "0xf38ba8"; green = "0xa6e3a1"; yellow = "0xf9e2af"; + blue = "0x89b4fa"; magenta = "0xf5c2e7"; cyan = "0x94e2d5"; white = "0xbac2de"; + }; + bright = { + black = "0x585b70"; red = "0xf38ba8"; green = "0xa6e3a1"; yellow = "0xf9e2af"; + blue = "0x89b4fa"; magenta = "0xf5c2e7"; cyan = "0x94e2d5"; white = "0xa6adc8"; + }; + }; + }; + }; + # TODO: Put user-installed binaries here if you want HM to own them (optional) # home.packages = with pkgs; [ # ]; diff --git a/nixos/hosts/macos.nix b/nixos/hosts/macos.nix index 84e4c7d..19b51bd 100644 --- a/nixos/hosts/macos.nix +++ b/nixos/hosts/macos.nix @@ -63,6 +63,7 @@ fzf cowsay lolcat + alacritty ]; # Keep for darwin as well (tracks defaults across upgrades)