Skip to content
rin2yhPublic

About

my dotfiles

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

549 Commits

Folders and files

Repository files navigation

My Dotfiles

Setup

Git・Homebrew 用に Command Line Tools が必要です。

未導入の場合は、先に以下のコマンドを実行してダイアログからインストールします。

xcode-select --install

インストール完了後、xcode-select -p で開発ツールのパスが表示されることを確認します。任意の場所に clone し、machine.nix の username と dotfilesDir(絶対パス)を設定してから、リポジトリ直下で実行します。

./bootstrap.sh

This will:

  1. Initialize git submodules
  2. Install Nix (if not installed)

Then apply the configuration via flake apps:

exec zsh -l              # Nix を PATH に反映
nix run .#switch   # Apply nix-darwin + home-manager configuration (mise 等のパッケージもここで入る)
nix run .#tools           # Install development tools (mise install)

Other flake apps

nix run .#clean           # nh clean all --keep-since 30d --keep-one

Structure

.
├── bootstrap.sh    # Nix 導入前の最小限のセットアップ
├── flake.nix
├── machine.nix     # ユーザー名・dotfiles の配置先
├── darwin/         # nix-darwin システム設定 + home-manager 統合
└── home/           # home-manager 配下の各ツール設定

Notes

  • home/ 配下は mkOutOfStoreSymlink で配置
    • .zshrc / nvim/ / claude/CLAUDE.md など、既存ファイルの編集は保存後すぐ反映
  • nix run .#switch が必要な変更
    • machine.nix の変更
    • home.packages の追加・削除
    • home.file / xdg.configFile の symlink 追加
    • darwin/ 配下の変更
    • flake.nix / flake.lock の更新
      • flake.lock は nix flake update 後に実行
  • Neovim plugins
    • vim.pack で管理し、home/nvim/nvim-pack-lock.json に revision を記録
    • 更新取り込み後は :restart

About

my dotfiles

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages