{"id":21271229,"url":"https://github.com/rikeda71/.dotfiles","last_synced_at":"2026-05-01T21:33:49.566Z","repository":{"id":19976444,"uuid":"76156028","full_name":"rikeda71/.dotfiles","owner":"rikeda71","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-19T08:07:47.000Z","size":579,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-19T10:14:09.270Z","etag":null,"topics":["tmux","vim","zsh"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rikeda71.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2016-12-11T05:24:39.000Z","updated_at":"2026-04-18T03:40:11.000Z","dependencies_parsed_at":"2022-08-07T09:15:47.763Z","dependency_job_id":"7a480927-a022-490b-a0b8-d158e5ab7def","html_url":"https://github.com/rikeda71/.dotfiles","commit_stats":null,"previous_names":["rikeda71/.dotfiles"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rikeda71/.dotfiles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikeda71%2F.dotfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikeda71%2F.dotfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikeda71%2F.dotfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikeda71%2F.dotfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rikeda71","download_url":"https://codeload.github.com/rikeda71/.dotfiles/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikeda71%2F.dotfiles/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32513732,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["tmux","vim","zsh"],"created_at":"2024-11-21T08:21:24.703Z","updated_at":"2026-05-01T21:33:49.556Z","avatar_url":"https://github.com/rikeda71.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# .dotfiles\n\nmacOS 環境を [Nix](https://nixos.org/) で宣言的に管理する dotfiles。\n\n## 環境\n\n| カテゴリ | ツール |\n|---|---|\n| パッケージ管理 | [Nix](https://nixos.org/) ([nix-darwin](https://github.com/LnL7/nix-darwin) + [home-manager](https://github.com/nix-community/home-manager)) |\n| ターミナル | [Ghostty](https://ghostty.org/) |\n| シェル | zsh ([Zinit](https://github.com/zdharma-continuum/zinit)) |\n| プロンプト | [Starship](https://starship.rs/) |\n| エディタ | [Neovim](https://neovim.io/) |\n| 言語ランタイム | [mise](https://mise.jdx.dev/) |\n| AI | [Claude Code](https://claude.ai/code) |\n\n## セットアップ\n\n### 1. Nix のインストール\n\n```shell\ncurl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install\n```\n\n### 2. Homebrew のインストール\n\n```shell\n/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"\n```\n\n### 3. リポジトリのクローン\n\n```shell\ngit clone https://github.com/rikeda71/.dotfiles.git ~/.dotfiles\ncd ~/.dotfiles\n```\n\n### 4. ビルド・適用\n\n```shell\n# 初回（darwin-rebuild 未導入時）\nsudo nix run nix-darwin/master#darwin-rebuild -- switch --flake .#personal --impure\n\n# 2回目以降\nsudo darwin-rebuild switch --flake .#personal --impure   # プライベート Mac\nsudo darwin-rebuild switch --flake .#work --impure       # 会社 Mac\n```\n\n### 5. Raycast の設定復元\n\nRaycast を起動し、Settings \u003e Advanced \u003e Import から `raycast/Raycast.rayconfig` をインポートする。\n\n### 自動で行われること\n\n`darwin-rebuild switch` により以下が自動的に行われます:\n\n- CLI ツールのインストール (Nix)\n- GUI アプリのインストール (Homebrew cask)\n- dotfile の symlink 作成 (home-manager)\n- macOS システム設定の適用\n- Claude Code の MCP サーバー登録・スキルインストール\n\n## 構成\n\n```text\n.dotfiles/\n├── flake.nix               # Nix flake エントリポイント\n├── nix/\n│   ├── common.nix          # 共通パッケージ (CLI ツール)\n│   ├── darwin.nix          # macOS 設定 + Homebrew casks\n│   ├── home.nix            # dotfile symlinks + activation scripts\n│   └── hosts/\n│       ├── personal.nix    # プライベート Mac 固有設定\n│       └── work.nix        # 会社 Mac 固有設定\n├── .zshrc                  # Zsh 設定\n├── .gitconfig              # Git 設定\n├── .vimrc / .vim/          # Vim 設定\n├── .ideavimrc              # IdeaVim 設定\n├── nvim/                   # Neovim 設定 (lazy.nvim)\n├── ghostty/                # Ghostty ターミナル設定\n├── starship.toml           # Starship プロンプト設定\n├── mise/                   # mise 言語ランタイム設定\n├── .vscode/                # VS Code 設定\n├── .ssh/config             # SSH 設定\n├── raycast/                # Raycast 設定（手動インポート）\n└── .claude/                # Claude Code 設定\n    ├── settings.json       # グローバル設定\n    ├── CLAUDE.md           # AI コーディングルール\n    ├── skills/             # カスタムスキル\n    ├── hooks/              # フック\n    ├── install-mcp.sh      # MCP サーバー登録\n    └── install-skills.sh   # スキルインストール\n```\n\n## パッケージ管理の分担\n\n| 管理先 | 対象 | 設定ファイル |\n|--------|------|-------------|\n| **Nix** | CLI ツール (eza, fzf, gh, neovim, etc.) | `nix/common.nix` |\n| **Homebrew cask** | GUI アプリ (Ghostty, Obsidian, Raycast) | `nix/darwin.nix` |\n| **mise** | 言語ランタイム (Go, Java, Python, Rust, Node) | `mise/config.toml` |\n\n## Claude Code\n\nMCP サーバー (Sentry, ClickUp, DrawIO, Next Devtools) と各種スキルは `darwin-rebuild switch` 時に自動登録されます（`claude` CLI が PATH 上にある場合のみ）。\n\nFigma MCP は API キーが必要なため手動で登録してください:\n\n```shell\nclaude mcp add figma -e FIGMA_API_KEY=\"your-key\" -- npx -y figma-developer-mcp --stdio\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frikeda71%2F.dotfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frikeda71%2F.dotfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frikeda71%2F.dotfiles/lists"}