Add comprehensive zsh configuration with Powerlevel10k

- Create separate zsh.nix module for enhanced shell experience
- Add Powerlevel10k theme with custom configuration from wizard
- Include useful aliases for git, nix, and navigation commands
- Add modern CLI tools: fzf, fd, ripgrep, bat for better productivity
- Enable autosuggestions, syntax highlighting, and completion
- Add portable p10k.zsh configuration for consistent prompt across machines
- Update flake.nix to import zsh module and remove inline config
- Update tmux.nix with prefix indicator and datetime removal

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Yan Lin 2025-07-26 10:36:08 +02:00
parent b30b393541
commit c0bba829c2
4 changed files with 1789 additions and 12 deletions

View file

@ -26,7 +26,7 @@
};
homeConfiguration = { pkgs, ... }: {
imports = [ ./nvim.nix ./tmux.nix ];
imports = [ ./nvim.nix ./tmux.nix ./zsh.nix ];
home.username = "yanlin";
home.homeDirectory = "/Users/yanlin";
@ -49,14 +49,7 @@
programs.home-manager.enable = true;
programs.zsh = {
enable = true;
defaultKeymap = "viins";
enableVteIntegration = true;
sessionVariables = {
COLORTERM = "truecolor";
};
};
};
in
{
@ -64,7 +57,7 @@
modules = [ configuration ];
};
darwinConfigurations."mba" = nix-darwin.lib.darwinSystem {
darwinConfigurations."Macbook-Air" = nix-darwin.lib.darwinSystem {
modules = [ configuration ];
};