Nix configuration for my NixOS and nix-darwin hosts
Find a file
2025-07-26 02:27:58 +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 tmux and nvim color display issues 2025-07-26 00:14:34 +02:00
nvim.nix Display relative path 2025-07-26 02:27:58 +02:00
README.md Add README with installation and usage instructions 2025-07-26 01:03:12 +02:00
tmux.nix Restore gruvbox truecolor theme for iTerm2 compatibility 2025-07-26 00: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.