Nix configuration for my NixOS and nix-darwin hosts
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| nvim.nix | ||
| README.md | ||
| tmux.nix | ||
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 configurationmba- MacBook Air configuration
For now, both machines use the same base configuration with potential for machine-specific customizations.