Skip to content

r1cA18/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

142 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

Nix (nix-darwin + home-manager) によるクロスプラットフォーム環境管理

サポート環境

OS 管理方法 ビルドコマンド
macOS nix-darwin + home-manager dr
Ubuntu/Linux home-manager (standalone) dr

クイックスタート

1. Nix インストール

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

2. dotfiles クローン & ビルド

git clone https://github.com/r1cA18/dotfiles.git ~/dotfiles
cd ~/dotfiles/nix

# macOS (RMB)
nix run nix-darwin -- switch --flake .#RMB

# macOS (r1ca18lab)
nix run nix-darwin -- switch --flake .#r1ca18lab

# Linux
nix run home-manager -- switch --flake .#r1ca18@linux

Linux初回セットアップの注意点

nix run がエラーになる場合は experimental features を有効化してから再実行:

echo "experimental-features = nix-command flakes" | sudo tee -a /etc/nix/nix.conf
sudo systemctl restart nix-daemon

Ghostty を使っている場合、SSH先に terminfo を転送する(Mac側で実行):

infocmp -x xterm-ghostty | ssh USER@HOST 'tic -x /dev/stdin'

3. 以降の更新

dr  # rebuild

よく使うコマンド

h      # エイリアス一覧(説明付き)
hv     # エイリアス一覧(コマンド表示)
dr     # Nixリビルド
du     # flake更新

Claude Code

cc     # Claude Code起動
ccc    # 前回のセッション継続
ccr    # セッション選択して再開
ccd    # 承認スキップモード

構造

dotfiles/
├── nix/
│   ├── flake.nix                 # エントリポイント
│   ├── darwin/configuration.nix  # macOS設定、Homebrew
│   └── home-manager/
│       ├── home.nix              # ユーザー設定
│       └── programs/
│           ├── packages.nix      # パッケージ、PATH、npmパッケージ
│           ├── zsh.nix           # エイリアス(自動ヘルプ付き)
│           ├── git.nix           # Git
│           ├── neovim.nix        # Neovim
│           ├── ghostty.nix       # Ghostty
│           └── karabiner.nix     # Karabiner
├── nvim/                         # Neovim設定
├── ghostty/                      # Ghostty設定
├── karabiner/                    # Karabiner設定
└── docs/                         # ドキュメント

自動インストールされるもの

npmパッケージ(bun経由)

dr実行時に自動インストール:

  • @anthropic-ai/claude-code
  • @google/gemini-cli
  • @openai/codex
  • agent-browser
  • @ast-grep/cli

Skills

  • ui-skills - UI/UXレビュー用スキル
  • vercel-react-best-practices - React/Next.jsベストプラクティス
  • web-design-guidelines - Webデザインガイドライン

ドキュメント

ドキュメント 説明
docs/README.md ドキュメント目次
docs/architecture.md アーキテクチャ詳細
docs/guides/ 各種ガイド

参考

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors