Nix configuration for my NixOS and nix-darwin hosts
Find a file
Yan Lin 4098771120 Add vim mode indicators and enhanced keybindings to zsh
- Enable vim keybindings with defaultKeymap = "viins"
- Add cursor shape changes: line cursor for insert mode, block for normal mode
- Reduce mode switching delay from 400ms to 10ms for faster response
- Add vim-style history navigation with k/j in normal mode
- Add history search with / and ? in normal mode
- Add word movement with Ctrl+arrow keys in insert mode
- Integrate with Powerlevel10k prompt symbols for mode indication

Provides clear visual feedback for vim mode changes with multiple indicators.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-26 11:32:26 +02:00
.gitignore Initial Nix configuration setup 2025-07-25 23:25:21 +02:00
flake.lock Fix color theme issues after git setup 2025-07-25 23:49:00 +02:00
flake.nix Fix darwin configuration name case mismatch 2025-07-26 10:49:43 +02:00
nvim.nix Add system clipboard keymaps to nvim configuration 2025-07-26 08:40:06 +02:00
p10k.zsh Add comprehensive zsh configuration with Powerlevel10k 2025-07-26 10:36:08 +02:00
README.md Add README with installation and usage instructions 2025-07-26 01:03:12 +02:00
tmux.nix Add comprehensive zsh configuration with Powerlevel10k 2025-07-26 10:36:08 +02:00
tmux.sh Add tmux session script for nix configuration workspace 2025-07-26 09:37:30 +02:00
zsh.nix Add vim mode indicators and enhanced keybindings to zsh 2025-07-26 11:32:26 +02:00

Personal Nix Configuration

A simple Nix configuration for macOS using nix-darwin and home-manager. Largely generated by Claude Code.

Quick Install

Install directly from GitHub without cloning:

# Darwin system configuration
sudo darwin-rebuild switch --flake github:Logan-Lin/nix-config

# Home Manager configuration  
home-manager switch --flake github:Logan-Lin/nix-config#yanlin

What's Included

  • nix-darwin: System-level macOS configuration
  • home-manager: User environment and dotfiles
  • Neovim: Configured with treesitter, file explorer, and gruvbox theme
  • Tmux: Vim-like keybindings with gruvbox colors
  • Packages: LaTeX, Python, btop, fonts, and development tools

Usage

# Update and switch configuration
nix flake update
sudo darwin-rebuild switch --flake .
home-manager switch --flake .#yanlin

Machines

  • iMac - iMac configuration
  • mba - MacBook Air configuration

For now, both machines use the same base configuration with potential for machine-specific customizations.