HI
config
Important
People who are interested in Claude Code config, please visit modules/claude-code.
Unified Nix-based configuration for macOS (nix-darwin) and NixOS.
Structure
dotfiles/
├── flake.nix # Unified flake (NixOS + nix-darwin)
├── Makefile # Build and setup targets
├── hosts/
│ ├── nixos/ # NixOS system configuration
│ └── macos/ # nix-darwin system configuration
├── home/
│ ├── nixos.nix # NixOS Home Manager entry point
│ ├── macos.nix # macOS Home Manager entry point
│ └── modules/ # Shared and platform-specific modules
├── brew/ # Homebrew Brewfiles (macOS)
└── secrets/ # sops-nix encrypted secrets
Setup
macOS
- Install Nix
- Clone this repository to
~/dotfiles - Apply the nix-darwin configuration:
make switch - Install Homebrew packages:
make brew make brew-gui
NixOS
- Clone this repository to
~/dotfiles - Apply the NixOS configuration:
make switch
Makefile Targets
All Nix targets automatically detect the platform (macOS / NixOS) and run the appropriate command.
| Target | Description |
|---|---|
build |
Build system configuration (dry run) |
switch |
Apply system + Home Manager configuration |
update |
Update flake inputs |
gc |
Delete old generations (keep last 7) and run garbage collection |
brew-install |
Install Homebrew |
brew |
Install base Homebrew packages |
brew-gui |
Install GUI Homebrew packages |
brew-optional |
Install optional Homebrew packages |
brew-himkt |
Install personal Homebrew packages |
On this page
Languages
Nix38.4%Vue14.9%Shell11.0%Vim Snippet9.2%Vim Script7.1%Python6.7%CSS4.5%TeX3.1%Rust2.1%Makefile2.0%Ruby0.6%C++0.3%Go0.1%
Latest Release
v1.0February 16, 2019MIT License
Created February 22, 2017
Updated March 8, 2026