Skip to content

feat: profile (personal/work) の配線基盤を追加する#491

Merged
rito528 merged 1 commit into
mainfrom
feat/profile-wiring
Jul 22, 2026
Merged

feat: profile (personal/work) の配線基盤を追加する#491
rito528 merged 1 commit into
mainfrom
feat/profile-wiring

Conversation

@rito528

@rito528 rito528 commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • 業務用マシンでは入れてよいソフトウェアが private 機と異なりうるため、machinesprofile ("personal" / "work") を持たせ、identity と同様に extraSpecialArgs 経由で全モジュールから参照可能にする配線を追加
  • 許容外の値 (typo など) は mkHomeConfig 内の assert で早期検知
  • 配線確認用に profile = "work"testuser-work エントリを追加(実マシンではない)

このPRはあくまで配線のみ。どのパッケージ・モジュールを work で外すかは業務要件次第の判断が必要なため、modules/packages.nix 等の実際の出し分けは次PRで対応する。

Test plan

  • nix run nixpkgs#nixfmt -- --check flake.nix
  • nix flake check .testuser-work が自動的に shallow evaluate されることを確認
  • nix eval .#homeConfigurations.<name>._module.specialArgs.profile で rito528/testuser/testuser-darwin が "personal"、testuser-work が "work" になることを確認
  • 既存の config.home.username 系 eval が壊れていないことを確認

🤖 Generated with Claude Code

業務用マシンでは入れてよいソフトウェアが private 機と異なりうるため、
machines に profile を持たせ、identity と同様に extraSpecialArgs
経由で全モジュールへ配線する。許容外の値は assert で早期に検知する。

配線確認用に profile="work" の testuser-work エントリを追加。実際に
profile でパッケージ等を出し分けるモジュール側の変更は行わない
(次PRで業務要件を踏まえて対応する)。

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@rito528
rito528 merged commit d47a6bd into main Jul 22, 2026
7 checks passed
@rito528
rito528 deleted the feat/profile-wiring branch July 22, 2026 15:51
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