Nix configuration for my NixOS and nix-darwin hosts
Find a file
Yan Lin c0bba829c2 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>
2025-07-26 10:36:08 +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 Add comprehensive zsh configuration with Powerlevel10k 2025-07-26 10:36:08 +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 comprehensive zsh configuration with Powerlevel10k 2025-07-26 10:36:08 +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.