GitHunt
HI

himkt/config

❄️ Nix-based dotfiles, claude code configs, and system settings for macOS & NixOS, which makes everyday software development fun!

config

macOS
NixOS

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

  1. Install Nix
  2. Clone this repository to ~/dotfiles
  3. Apply the nix-darwin configuration:
    make switch
    
  4. Install Homebrew packages:
    make brew
    make brew-gui
    

NixOS

  1. Clone this repository to ~/dotfiles
  2. 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

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%

Contributors

Latest Release

v1.0February 16, 2019
MIT License
Created February 22, 2017
Updated March 8, 2026