Nix configuration for my NixOS and nix-darwin hosts
Find a file
Yan Lin b30b393541 Add tmux session script for nix configuration workspace
- Create automated tmux session setup with 3 windows: nvim, ai, and bash
- Auto-start nvim in first window and claude in ai window with split panes
- Provides quick workspace initialization for nix config development

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-26 09:37:30 +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 gitui for beautiful CLI git graph visualization 2025-07-26 09:02:11 +02:00
nvim.nix Add system clipboard keymaps to nvim configuration 2025-07-26 08:40:06 +02:00
README.md Add README with installation and usage instructions 2025-07-26 01:03:12 +02:00
tmux.nix Change tmux prefix key from Ctrl+b to Ctrl+a 2025-07-26 08:25:37 +02:00
tmux.sh Add tmux session script for nix configuration workspace 2025-07-26 09:37:30 +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.