Repository navigation
feat: 新規マシンでも nix-darwin セットアップが通るようにする #1004
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
cdb2243
687eb12
7efedf0
7b88e04
a577c60
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,7 @@ | |
| awscli2 | ||
| aws-sam-cli | ||
| azure-cli | ||
| google-cloud-sdk | ||
| kubernetes-helm | ||
| sops | ||
| terraform | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,6 +1,29 @@ | ||||||||||||||||||||||
| { ... }: | ||||||||||||||||||||||
| { config, lib, ... }: | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| let | ||||||||||||||||||||||
| # brew trust(Homebrew 6+)にも渡すため let で束ねる | ||||||||||||||||||||||
| taps = [ | ||||||||||||||||||||||
| "1password/tap" | ||||||||||||||||||||||
| "asheshgoplani/tap" | ||||||||||||||||||||||
| "koekeishiya/formulae" | ||||||||||||||||||||||
| "nikitabobko/tap" | ||||||||||||||||||||||
| "supabase/tap" | ||||||||||||||||||||||
| "ynqa/tap" | ||||||||||||||||||||||
| "yukiarrr/tap" | ||||||||||||||||||||||
| ]; | ||||||||||||||||||||||
| in | ||||||||||||||||||||||
| { | ||||||||||||||||||||||
| # Homebrew 6+ はサードパーティ tap を明示的に信頼しないと formula/cask を | ||||||||||||||||||||||
| # 読み込まない(新規マシンで brew bundle が失敗する)。trust.json は | ||||||||||||||||||||||
| # ユーザー単位の設定なので primaryUser として事前に登録する。 | ||||||||||||||||||||||
| system.activationScripts.preActivation.text = '' | ||||||||||||||||||||||
| if [ -x /opt/homebrew/bin/brew ] && sudo -u ${config.system.primaryUser} -H /opt/homebrew/bin/brew trust --help >/dev/null 2>&1; then | ||||||||||||||||||||||
| ${lib.concatMapStringsSep "\n " ( | ||||||||||||||||||||||
| tap: ''sudo -u ${config.system.primaryUser} -H /opt/homebrew/bin/brew trust "${tap}" || true'' | ||||||||||||||||||||||
| ) taps} | ||||||||||||||||||||||
|
Comment on lines
+19
to
+23
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🩺 Stability & Availability | 🟠 Major | ⚡ Quick win Do not suppress tap-trust failures. Line 22 masks every Proposed fix- tap: ''sudo -u ${config.system.primaryUser} -H /opt/homebrew/bin/brew trust "${tap}" || true''
+ tap: ''sudo -u ${config.system.primaryUser} -H /opt/homebrew/bin/brew trust "${tap}"''📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||
| fi | ||||||||||||||||||||||
| ''; | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| homebrew = { | ||||||||||||||||||||||
| enable = true; | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
|
|
@@ -11,19 +34,12 @@ | |||||||||||||||||||||
| }; | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| # === Taps === | ||||||||||||||||||||||
| taps = [ | ||||||||||||||||||||||
| "1password/tap" | ||||||||||||||||||||||
| "asheshgoplani/tap" | ||||||||||||||||||||||
| "koekeishiya/formulae" | ||||||||||||||||||||||
| "nikitabobko/tap" | ||||||||||||||||||||||
| "supabase/tap" | ||||||||||||||||||||||
| "ynqa/tap" | ||||||||||||||||||||||
| "yukiarrr/tap" | ||||||||||||||||||||||
| ]; | ||||||||||||||||||||||
| inherit taps; | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| # === Formulae (Nix にないもの / tap 依存 / macOS 固有) === | ||||||||||||||||||||||
| brews = [ | ||||||||||||||||||||||
| "asheshgoplani/tap/agent-deck" # Agent Deck CLI | ||||||||||||||||||||||
| "bash" # bash 4+ (setup-claude.sh や typeset -g を使うスクリプトが必要。macOS 標準は 3.2) | ||||||||||||||||||||||
| "cliclick" # macOS automation | ||||||||||||||||||||||
| "mas" # Mac App Store CLI | ||||||||||||||||||||||
| "pinentry-mac" # GPG pinentry for macOS | ||||||||||||||||||||||
|
|
@@ -42,12 +58,13 @@ | |||||||||||||||||||||
| "1password-cli" | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| # Development Tools | ||||||||||||||||||||||
| # gcloud は nixpkgs の google-cloud-sdk で管理(cask の postinstall が | ||||||||||||||||||||||
| # virtualenv コマンドを要求し、新規マシンで失敗するため) | ||||||||||||||||||||||
| "android-studio" | ||||||||||||||||||||||
| "cursor" | ||||||||||||||||||||||
| "dotnet-sdk" | ||||||||||||||||||||||
| "elgato-stream-deck" | ||||||||||||||||||||||
| "flutter" | ||||||||||||||||||||||
| "gcloud-cli" | ||||||||||||||||||||||
| "ngrok" | ||||||||||||||||||||||
| "orbstack" | ||||||||||||||||||||||
| "tableplus" | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This adds a second Darwin configuration with a Determinate Nix mode, which is a non-trivial architecture change to the macOS environment. I searched
docs/adrand found no ADR covering the multi-host/Determinate decision, so future agents and reviewers will not have the context the repository requires before implementation; please add an ADR with the context, decision, and consequences.Useful? React with 👍 / 👎.