diff --git a/home.nix b/home.nix index 10ae5da..cebf4ca 100644 --- a/home.nix +++ b/home.nix @@ -5,7 +5,7 @@ ./modules/user/base.nix ./modules/user/apps.nix ./modules/user/graphical.nix - # ./modules/user/terminal.nix (Pending: Alacritty, Tmux, Starship) + ./modules/user/terminal.nix ]; home.username = "kiskaadee"; diff --git a/modules/user/terminal.nix b/modules/user/terminal.nix index e69de29..42c4dba 100644 --- a/modules/user/terminal.nix +++ b/modules/user/terminal.nix @@ -0,0 +1,70 @@ +{ pkgs, ... }: + +{ + # GPU-Accelerated Terminal Emulator + programs.alacritty = { + enable = true; + settings = { + window = { + padding = { x = 10; y = 10; }; + decorations = "none"; + opacity = 0.95; + }; + font = { + normal = { family = "JetBrainsMono Nerd Font"; style = "Regular"; }; + size = 12.0; + }; + colors = { + primary = { + background = "#1e1e2e"; # Catppuccin Mocha Base + foreground = "#cdd6f4"; # Catppuccin Mocha Text + }; + }; + }; + }; + + # Terminal Multiplexer + programs.tmux = { + enable = true; + shortcut = "a"; # Maps prefix to Ctrl+a + baseIndex = 1; + newSession = true; + escapeTime = 0; + mouse = true; + terminal = "tmux-256color"; + plugins = with pkgs.tmuxPlugins; [ + catppuccin + vim-tmux-navigator + ]; + extraConfig = '' + # Enable True Color (24-bit) support for Neovim themes + set -ag terminal-overrides ",xterm-256color:RGB" + + # Vim-style pane switching + bind h select-pane -L + bind j select-pane -D + bind k select-pane -U + bind l select-pane -R + + # Status bar position + set-option -g status-position top + ''; + }; + + # Cross-Shell Prompt + programs.starship = { + enable = true; + enableBashIntegration = true; + settings = { + add_newline = false; + character = { + success_symbol = "[➜](bold green)"; + error_symbol = "[➜](bold red)"; + }; + directory = { + style = "bold blue"; + truncate_to_repo = true; + }; + }; + }; +}