Nix configuration for my NixOS and nix-darwin hosts
Find a file
Yan Lin 950a276d44 Fix deprecated zsh configuration and remove vi keymapping
- Replace deprecated initExtra with initContent
- Remove defaultKeymap viins for standard emacs-style bindings

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-26 10:40:49 +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 Fix deprecated zsh configuration and remove vi keymapping 2025-07-26 10:40:49 +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.