Skip to content
/ config Public

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

License

Notifications You must be signed in to change notification settings

himkt/config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,667 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Contributors