Skip to content
프로젝트

소개

:penguin: 간단하고 빠르며 생산성을 높여 주는 dotfiles입니다.

생산성 및 자동화

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
+1
in 7 days
+1
in 15 days
0
in 1 month
0

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

rgomezcasas/dotfiles

rgomezcasas/dotfiles
macOS dotfiles powered by Nix flakes, home-manager, and 80+ shell scripts

Install  •  Workflow  •  Structure  •  Docs

Stack

Layer Tool
System config nix-darwin flake
User config home-manager (symlinks, session)
GUI packages Homebrew via nix-homebrew
Shell Zsh + plugins via Nix and Zim modules (<10ms startup)
Terminal Rex
Keyboard Karabiner-Elements via Goku
Scripts 80+ bash scripts via dotly framework

Prerequisites

  • macOS on Apple Silicon (aarch64-darwin)
  • Nix with flakes enabled
  • SSH key with access to dotfiles-private submodule

Installation

# 1. Install Nix
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install

# 2. Clone with submodules
git clone --recurse-submodules [email protected]:rgomezcasas/dotfiles.git ~/.dotfiles

# 3. Build and apply the system configuration
cd ~/.dotfiles/config/nix
sudo darwin-rebuild switch --flake .#pro --impure

This single command installs all Nix packages, Homebrew formulas/casks, Mac App Store apps, applies macOS defaults, and creates all symlinks via home-manager.

Daily workflow

Command Alias What it does
dot system rebuild rebuild Rebuild system with current Nix flake
dot system update up Update flake inputs, diff changes, rebuild, and upgrade Homebrew
dot — Browse all available scripts interactively

Adding packages

See the nix docs for step-by-step guides:

Editing keyboard shortcuts

Edit config/macos/karabiner-goku/karabiner.edn and run goku. Never edit karabiner.json directly. See the Karabiner guide.

Structure

~/.dotfiles
├── config/
│   ├── agents/          # Claude/AI agent instructions and commands
│   ├── git/             # .gitconfig, .gitattributes, .gitignore_global
│   ├── macos/           # Karabiner, Rex, skhd, Raycast, LaunchAgents
│   ├── editors/          # VSCode, Cursor, IntelliJ, Vim, Claude Code configs
│   ├── nix/             # Nix flake, home-manager, packages, system config
│   │   ├── flake.nix    #   Main flake: nix-darwin + home-manager + nix-homebrew
│   │   ├── home.nix     #   Home-manager entry point
│   │   ├── packages/    #   Package declarations (nix, brew, node, app-store)
│   │   └── system/      #   System config (symlinks, macOS defaults)
│   └── shell/           # Zsh/Bash configs, aliases, exports, functions
├── docs/                # Guides (packages, scripts, keyboard, editors)
├── modules/
│   ├── dotly/           # Shell script framework (submodule)
│   └── private/         # Credentials, private configs (submodule)
├── scripts/             # 80+ scripts organized by category
│   ├── system/          #   rebuild, update, volume, cron...
│   ├── github/          #   git/GitHub utilities
│   ├── claude/          #   Claude CLI wrappers
│   └── ...              #   ai, docker, image, network, utils, video...

Documentation

Guide Path
Adding packages docs/nix/
Creating scripts docs/scripts/
Keyboard shortcuts docs/karabiner/
Raycast scripts docs/raycast/
Editor settings docs/vscode-and-cursor/

Performance

Shell startup consistently under 10ms thanks to zsh-defer lazy loading:

λ ~ dot shell zsh test_performance
# ZSH startup time

Shell  Version     Median    Stddev       Min       Max  Runs
macOS  5.9         9.1 ms    4.5 ms    8.6 ms   42.3 ms    56  ← login shell
Nix    5.9.2      12.7 ms    0.4 ms   11.9 ms   14.6 ms    55

🏆 macOS is 1.39× faster than Nix

License

The MIT License (MIT). See LICENSE for more information.

관련 프로젝트 살펴보기

불러오는 중…