Skip to content

refactor: dotfiles管理をchezmoiとNix profileへ再編 - #13

Merged
T4ko0522 merged 39 commits into
masterfrom
migration/chezmoi
Jul 26, 2026
Merged

refactor: dotfiles管理をchezmoiとNix profileへ再編#13
T4ko0522 merged 39 commits into
masterfrom
migration/chezmoi

Conversation

@T4ko0522

@T4ko0522 T4ko0522 commented Jul 23, 2026

Copy link
Copy Markdown
Owner

概要

dotfilesの配置責務を、静的設定はchezmoi、書き戻しが必要な設定はmutable/、NixOS固有設定はNix moduleへ整理します。Windows・NixOS・WSLの環境profileを明示し、各構成を同じrepositoryから再現・検証できる構成へ移行します。

背景

従来はHome Manager、手書きPowerShell、symlink・junction、OS別ディレクトリが同じ設定を重複管理しており、変更元と配置先の対応が分かりにくい状態でした。また、NixOSのdesktop構成とWSLのCLI構成が十分に分離されておらず、構成ごとの可用性を継続的に確認する契約も不足していました。

主な変更点

  • chezmoiのsource stateとwindowsnixoswsl profileを追加
  • 静的dotfileをchezmoi/へ移し、環境別テンプレートとignore条件を定義
  • Lazygit、Zed、APM、Neovim、cava、Fcitx5などの書き戻し対象をmutable/へ分離
  • Windowsの手書きsetup処理をchezmoi applyとjunction作成scriptへ統合
  • NixOS設定をhost、feature module、feature profile、Home Manager module/profile、packageへ責務別に再編
  • laptop・desktopではNixvim、WSLではVimを使用する構成へ分離
  • Nixvim設定をplugin領域ごとのmoduleへ分割
  • WSL用のNixOS構成とCLI package profileを追加
  • ownership契約、chezmoi render/apply、Windows可用性、Nix profile、4構成のbuildを検証するCIを追加
  • 不要になった手動setup script、旧dotfile tree、未使用package・CI・hook・documentを削除
  • ownership表、移行設計、README、keybinding documentを現行構成へ更新

影響範囲

  • frontend: 特になし
  • backend: 特になし
  • config: chezmoi/mutable/nix-configs/flake.nixjustfileを中心にdotfileとNixOS構成を再編
  • CI: .github/workflows/を責務別workflowへ分割し、chezmoi契約、Windows可用性、Nix profile、laptop・desktop・WSL・CI構成のbuildを追加
  • docs: README.mddocs/memo/docs/keybindings/を新しいownershipと配置先へ更新

レビューで見るべきポイント

  • docs/memo/dotfiles-ownership.tsvのownerと、chezmoi・Nix・unmanagedの実際の配置が一致しているか
  • windowsnixoswsl profileで不要なGUI設定やhookが混入していないか
  • Windows bootstrapとjunction作成が既存の書き戻し対象を壊さず、繰り返し適用できるか
  • laptop・desktop・WSL間のNix module/profile境界が妥当か
  • 大量のrename・deleteに、必要なdotfileやpackageの意図しない削除が含まれていないか
  • APMのsource、lockfile、生成物の追跡・ignore境界が正しいか

マージ前チェック

  • GitHub Actionsがすべてgreenか
  • laptop・desktop buildの失敗が解消されているか
  • Windows availabilityとnixos-ci buildが完了しているか
  • Codex reviewの結果と未解決レビュースレッドを確認したか
  • Nix syntax・format・Lua formatが成功している
  • chezmoi ownership contractが成功している
  • Nix profile contractとWSL buildが成功している

T4ko0522 added 24 commits July 15, 2026 21:50
feat: nixvim: Neovim設定をNixvimへ移行
WindowsのLazyVimとcavaをmutableツリーへ分離し、junctionで配置する。
NixOSはnixvim、WSLはvimのみとし、設定ソースをdot_configへ統一する。
ci.ymlをオーケストレーターにし、lint・chezmoi・buildを再利用可能workflowへ分離する。
publish-cacheはmasterのNix設定変更時だけ呼び出す。
nvimとcavaをmutable直下へ移し、junction・検証・ドキュメントの参照を更新する。
YASB設定、wingetパッケージ、setupリンク、runtimeファイルの除外設定を戻す。
refactor: ciをオーケストラレーションとして責務を分割
@T4ko0522
T4ko0522 marked this pull request as draft July 24, 2026 07:32
@T4ko0522

Copy link
Copy Markdown
Owner Author

@codex review

@T4ko0522
T4ko0522 marked this pull request as ready for review July 24, 2026 19:50
@T4ko0522 T4ko0522 changed the title Migration/chezmoi refactor: dotfiles管理をchezmoiとNix profileへ再編 Jul 24, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5b98e570c2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/bootstrap.ps1
Comment thread flake.nix
Comment thread nix-configs/home/profiles/ci.nix Outdated
Comment thread nix-configs/home/modules/xdg/files.nix
Comment thread .github/workflows/chezmoi.yml
Comment thread .github/workflows/lint.yml
T4ko0522 added 4 commits July 25, 2026 05:59
Vite+の配布物をversion付きURLへ固定し、Codex DesktopのDMG pinを更新する。
WSL専用Vimと軽量なCI profileを追加し、profile契約で回帰を検出する。
NixOSとWSLのswitch後にchezmoiを適用する導線を追加する。
Windows native path、Komorebi、whkd、YASB起動をchezmoi管理下へ復元し、再適用の非対話契約を追加する。
PRではNix変更時だけ全hostをbuildし、master pushではpublish対象外のWSLとCI hostだけをbuildする。
Markdown lintとWindows native path・非対話再適用の検証を復元する。
@T4ko0522

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@T4ko0522

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

T4ko0522 added 3 commits July 25, 2026 06:12
YASBのworkspace widget、PowerShell自動起動、Scoop導入、chezmoi ownershipとWindows CI契約から関連設定を除去する。
GitHub ActionsとJust recipeからMarkdown検査を外し、NixおよびWindowsの導入対象と専用設定も削除する。
既存のchezmoi configを読み込まず、windows・nixos・wslの各profileを独立して検証する。
@T4ko0522
T4ko0522 merged commit 614824a into master Jul 26, 2026
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant