{"id":50821546,"url":"https://github.com/crrow/dotfiles","last_synced_at":"2026-06-13T14:13:16.894Z","repository":{"id":359276663,"uuid":"1245306183","full_name":"crrow/dotfiles","owner":"crrow","description":"Personal dev environment: shell, editor, AI harness (Claude Code, Codex, MCP), and project scaffolds — one-command setup on a fresh machine.","archived":false,"fork":false,"pushed_at":"2026-05-21T12:15:02.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-21T12:34:30.491Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crrow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-21T05:24:35.000Z","updated_at":"2026-05-21T12:15:07.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/crrow/dotfiles","commit_stats":null,"previous_names":["crrow/dotfiles"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/crrow/dotfiles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crrow%2Fdotfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crrow%2Fdotfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crrow%2Fdotfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crrow%2Fdotfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crrow","download_url":"https://codeload.github.com/crrow/dotfiles/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crrow%2Fdotfiles/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34287387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-13T14:13:15.982Z","updated_at":"2026-06-13T14:13:16.884Z","avatar_url":"https://github.com/crrow.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dotfiles\n\nPersonal macOS environment as a [Nix flake](https://nixos.wiki/wiki/Flakes).\n[nix-darwin](https://github.com/LnL7/nix-darwin) declares system-level state\n(macOS defaults, Homebrew casks); [Home Manager](https://github.com/nix-community/home-manager)\ndeclares the user-level stuff (CLI tools, zsh, prompt, dotfiles).\n\nIdempotent by construction — every run converges the system toward the\ndeclared state. Re-running `darwin-rebuild switch` is always safe.\n\n## What's inside\n\n- **Hosts** (`hosts/\u003chostname\u003e/default.nix`): per-machine entry; the\n  flake auto-discovers every subdirectory and exposes it as\n  `darwinConfigurations.\u003chostname\u003e`\n- **System** (`modules/darwin/`): nix daemon + macOS defaults\n  (Dock, Finder, key repeat, …) → `system.nix`; Homebrew bridge for\n  casks (Ghostty) and brews → `homebrew.nix`\n- **User** (`modules/home/`): zsh + oh-my-zsh + powerlevel10k,\n  [zellij](https://zellij.dev), [mise](https://mise.jdx.dev), git (with delta),\n  fzf, bat, eza, fd, ripgrep — one file per concern\n- **Terminal**: [Ghostty](https://ghostty.org) (cask) with config in\n  `modules/home/ghostty.nix`\n\n## Bootstrap on a new macOS\n\nOne line, from a fresh user shell:\n\n```sh\n/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/crrow/dotfiles/main/install.sh)\"\n```\n\nWhat `install.sh` does (intentionally minimal — ~100 lines):\n\n1. Persists `$HTTPS_PROXY` (if set) to `~/.config/dotfiles/proxy.env` —\n   the single source of truth every Nix module reads from.\n2. Installs [Determinate Nix](https://determinate.systems/nix) if `nix`\n   isn't already on PATH.\n3. Fetches the repo to `~/code/personal/dotfiles` (tarball — no git\n   dependency yet).\n4. Hands off: `sudo nix run nix-darwin#darwin-rebuild -- switch --flake path:…`\n\nEverything else is declarative under `modules/darwin/`:\n\n- `proxy.nix` — writes `/etc/{sudoers.d/dotfiles-proxy,gitconfig,curlrc,zshenv.local}` from `proxy.env`\n- `xcode-clt.nix` — installs Command Line Tools non-interactively via `softwareupdate`\n- `nix-daemon-proxy.nix` — injects proxy into Determinate's launchd plist + restarts the daemon\n- `homebrew.nix` — declarative brew taps/brews/casks via `nix-homebrew`\n- `system.nix` — macOS defaults, primary user, nix daemon\n\nOpen a new shell when it's done.\n\nOne manual step the OS won't let any installer automate:\n**grant yabai + skhd Accessibility consent**\n(System Settings → Privacy \u0026 Security → Accessibility — TCC is SIP-protected).\nThen run `just postinstall` to restart the services.\n\nEnv knobs: `DOTFILES_DIR` (default `~/code/personal/dotfiles`),\n`DOTFILES_REF` (default `main`).\n\n## Without Nix — plain dotfiles via [chezmoi](https://chezmoi.io)\n\nAll user-level configs (zsh, git, mise, zellij, ghostty, VS Code, Zed)\nalso live as their *real* config files under `home/`, named with\nchezmoi's `dot_` source convention so the same tree drives both paths:\n\n```sh\nbrew install chezmoi\nchezmoi init --apply --source ~/code/personal/dotfiles/home\n```\n\nThat writes `~/.zshrc`, `~/.gitconfig`, `~/.config/mise/config.toml`,\netc. straight from `home/dot_*`. No Nix involved. Re-run `chezmoi apply`\non edits to the repo.\n\nCaveats for chezmoi mode:\n\n- VS Code on macOS reads from `~/Library/Application Support/Code/User/`\n  not `~/.config/Code/`. The repo stores the JSONs under\n  `home/dot_config/Code/User/` for chezmoi-friendliness; manually\n  symlink them across (`ln -sf ~/.config/Code/User/settings.json\n  \"~/Library/Application Support/Code/User/settings.json\"`). The Nix\n  module handles this automatically.\n- chezmoi doesn't install packages. Brew yabai/skhd/sketchybar/ghostty/\n  zed/powerlevel10k/zsh-syntax-highlighting/deja yourself if you want\n  the full setup.\n- The Nix and chezmoi mode share a single source-of-truth for config\n  *content* — but ownership of the resulting file in `$HOME` will fight\n  if you run both. Pick one.\n\n## Day-to-day\n\n```sh\ncd ~/code/personal/dotfiles\njust doctor                            # verify host is healthy (read-only)\n$EDITOR modules/home.nix               # change something\ndarwin-rebuild switch --flake .        # apply\n\njust update                            # git pull + switch\nnix flake update                       # bump pinned inputs\ndarwin-rebuild switch --flake .\n```\n\n`darwin-rebuild switch` will roll back automatically if activation fails —\nnothing partial gets left on disk.\n\n## Layout\n\n```\n.\n├── install.sh           # bash bootstrap: Determinate Nix → clone → switch\n├── doctor.sh            # read-only health check (or: just doctor)\n├── flake.nix            # entry point: inputs (nixpkgs / nix-darwin / HM) + outputs\n├── flake.lock           # pinned input revisions (committed)\n├── modules/\n│   ├── darwin.nix       # nix-darwin: system defaults + Homebrew casks\n│   └── home.nix         # Home Manager: user CLI + zsh / starship / zellij / git\n├── Justfile             # local VM control for testing on a clean macOS\n├── .claude/skills/      # how Claude verifies bootstrap on a fresh VM\n└── README.md\n```\n\n## Testing on a fresh macOS VM\n\n`Justfile` spins up a vanilla macOS VM via\n[lume](https://github.com/trycua/cua):\n\n```sh\njust baseline   # one-off ~22 GB image pull\njust vm-up      # clone baseline → start → wait for SSH (VNC pops automatically)\njust vm-ssh     # interactive shell (creds: lume / lume)\njust vm-vnc     # re-open VNC if you closed it\njust vm-down    # stop + delete the working VM\n```\n\nInside the VM you'd run the same one-liner from \"Bootstrap on a new macOS\"\nabove. See `.claude/skills/test-on-fresh-vm/SKILL.md` for the full\nend-to-end verification workflow including known gotchas (lume NAT DNS\nquirks, proxy setup).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrrow%2Fdotfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrrow%2Fdotfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrrow%2Fdotfiles/lists"}