From 54697bb8215771094ed12e6032d73b8e895e683d Mon Sep 17 00:00:00 2001 From: Shun Kakinoki Date: Wed, 8 Oct 2025 12:14:20 +0900 Subject: [PATCH 01/10] feat(dock): update persistent apps in dock configuration fix(settings): simplify notification command in settings feat(packages): add yazi to home-manager package list --- config/claude/settings.local.json | 2 +- home-manager/modules/ghostty/config | 1 + home-manager/packages/default.nix | 1 + nix-darwin/config/dock.nix | 2 ++ 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/claude/settings.local.json b/config/claude/settings.local.json index 564d34fbc..f2c8d2466 100644 --- a/config/claude/settings.local.json +++ b/config/claude/settings.local.json @@ -6,7 +6,7 @@ "hooks": [ { "type": "command", - "command": "cat | jq -r '\"display notification \\\"\" + .message + \"\\\" with title \\\"\" + .title + \"\\\" sound name \\\"Sonar\\\"\"' | xargs -I {} osascript -e '{}'" + "command": "jq -r '.message' | xargs -I {} osascript -e 'display notification \"{}\" with title \"Claude Code\" sound name \"Sonar\"'" } ] } diff --git a/home-manager/modules/ghostty/config b/home-manager/modules/ghostty/config index 62bd6b51d..4e25b2a29 100644 --- a/home-manager/modules/ghostty/config +++ b/home-manager/modules/ghostty/config @@ -3,6 +3,7 @@ # auto-update-channel = tip +background-opacity = 0.8 window-decoration = true window-theme = "dark" window-save-state = always diff --git a/home-manager/packages/default.nix b/home-manager/packages/default.nix index e5cd13305..5d54d2e1a 100644 --- a/home-manager/packages/default.nix +++ b/home-manager/packages/default.nix @@ -56,6 +56,7 @@ with pkgs; uv wget yarn + yazi yq zellij zoxide diff --git a/nix-darwin/config/dock.nix b/nix-darwin/config/dock.nix index b04a6bbb5..6400b743c 100644 --- a/nix-darwin/config/dock.nix +++ b/nix-darwin/config/dock.nix @@ -15,9 +15,11 @@ persistent-apps = [ "/System/Applications/Reminders.app" "/System/Applications/Notes.app" + "/System/Applications/Mail.app" "/Applications/ChatGPT.app" "/Applications/Claude.app" "/Applications/Google Chrome.app" + "/Applications/Wispr Flow.app" "/Applications/Docker.app" "/Applications/Docker.app/Contents/MacOS/Docker Desktop.app" "/Applications/LM Studio.app" From e9181ca241543b850494c434ee4d068a7c0d59ee Mon Sep 17 00:00:00 2001 From: Shun Kakinoki Date: Wed, 8 Oct 2025 12:15:49 +0900 Subject: [PATCH 02/10] feat(package.json): add trustedDependencies section for clarity --- package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.json b/package.json index 8d3dba25a..9a596407f 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,11 @@ "author": "", "license": "ISC", "packageManager": "bun@1.2.23", + "trustedDependencies": [ + "@github/copilot", + "@google/jules", + "open-composer" + ], "dependencies": { "@github/copilot": "^0.0.335", "@google/jules": "^0.1.30", From c29ad385dbf55c020ca5445593de7ce504b99932 Mon Sep 17 00:00:00 2001 From: Shun Kakinoki Date: Wed, 8 Oct 2025 12:20:31 +0900 Subject: [PATCH 03/10] style(package.json): format trustedDependencies for consistency --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 9a596407f..d430ef50c 100644 --- a/package.json +++ b/package.json @@ -11,9 +11,9 @@ "license": "ISC", "packageManager": "bun@1.2.23", "trustedDependencies": [ - "@github/copilot", - "@google/jules", - "open-composer" + "@github/copilot", + "@google/jules", + "open-composer" ], "dependencies": { "@github/copilot": "^0.0.335", From f22dd9bf0ebc7d08d92c985ef5027ed1ceb61eb2 Mon Sep 17 00:00:00 2001 From: Shun Kakinoki Date: Wed, 8 Oct 2025 12:31:04 +0900 Subject: [PATCH 04/10] feat(bun.lock): add trustedDependencies section for package clarity --- bun.lock | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bun.lock b/bun.lock index 2c36298b0..bc65988f8 100644 --- a/bun.lock +++ b/bun.lock @@ -10,6 +10,11 @@ }, }, }, + "trustedDependencies": [ + "@google/jules", + "@github/copilot", + "open-composer", + ], "packages": { "@emnapi/runtime": ["@emnapi/runtime@1.5.0", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-97/BJ3iXHww3djw6hYIfErCZFee7qCtrneuLa20UXFCOTCfBM2cvQHjWJ2EG0s0MtdNwInarqCTz35i4wWXHsQ=="], From db091a05006b39087be1a400020cc1bf8d9039ac Mon Sep 17 00:00:00 2001 From: Shun Kakinoki Date: Wed, 8 Oct 2025 12:31:22 +0900 Subject: [PATCH 05/10] style(package.json): reorder trustedDependencies for improved clarity --- package.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index d430ef50c..d82de074f 100644 --- a/package.json +++ b/package.json @@ -10,14 +10,14 @@ "author": "", "license": "ISC", "packageManager": "bun@1.2.23", - "trustedDependencies": [ - "@github/copilot", - "@google/jules", - "open-composer" - ], "dependencies": { "@github/copilot": "^0.0.335", "@google/jules": "^0.1.30", "open-composer": "^0.8.14" - } + }, + "trustedDependencies": [ + "@github/copilot", + "@google/jules", + "open-composer" + ] } From cb76b6cb91b333fd77124418c68cd4591a9bf73c Mon Sep 17 00:00:00 2001 From: Shun Kakinoki Date: Wed, 8 Oct 2025 12:43:42 +0900 Subject: [PATCH 06/10] feat(default.nix): add postinstall script trust for global npm packages --- home-manager/modules/npm-globals/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home-manager/modules/npm-globals/default.nix b/home-manager/modules/npm-globals/default.nix index 88b8623b1..3e6240083 100644 --- a/home-manager/modules/npm-globals/default.nix +++ b/home-manager/modules/npm-globals/default.nix @@ -17,6 +17,10 @@ cd "${config.home.homeDirectory}/dotfiles" ${pkgs.bun}/bin/bun install --global \ $(${pkgs.jq}/bin/jq -r '.dependencies | keys[]' "$PACKAGE_JSON") 2>/dev/null || true + + # Trust and run postinstall scripts for global packages + echo "Running postinstall scripts for trusted global packages..." + ${pkgs.bun}/bin/bun pm -g trust 2>/dev/null || true fi ''; From 118694bc5f092b1d274f995595d1450f68015047 Mon Sep 17 00:00:00 2001 From: Shun Kakinoki Date: Wed, 8 Oct 2025 12:58:49 +0900 Subject: [PATCH 07/10] feat(default.nix): trust postinstall scripts for packages in trustedDependencies --- home-manager/modules/npm-globals/default.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/home-manager/modules/npm-globals/default.nix b/home-manager/modules/npm-globals/default.nix index 3e6240083..ad4f8666b 100644 --- a/home-manager/modules/npm-globals/default.nix +++ b/home-manager/modules/npm-globals/default.nix @@ -15,12 +15,18 @@ if [ -f "$PACKAGE_JSON" ]; then echo "Installing npm global packages from package.json using bun..." cd "${config.home.homeDirectory}/dotfiles" + + # Trust postinstall scripts for packages listed in trustedDependencies before installing + TRUSTED_DEPS=$(${pkgs.jq}/bin/jq -r '.trustedDependencies[]?' "$PACKAGE_JSON" 2>/dev/null) + if [ -n "$TRUSTED_DEPS" ]; then + echo "Trusting postinstall scripts for: $TRUSTED_DEPS" + echo "$TRUSTED_DEPS" | while read -r dep; do + ${pkgs.bun}/bin/bun pm -g trust "$dep" 2>/dev/null || true + done + fi + ${pkgs.bun}/bin/bun install --global \ $(${pkgs.jq}/bin/jq -r '.dependencies | keys[]' "$PACKAGE_JSON") 2>/dev/null || true - - # Trust and run postinstall scripts for global packages - echo "Running postinstall scripts for trusted global packages..." - ${pkgs.bun}/bin/bun pm -g trust 2>/dev/null || true fi ''; From dadb501dde2c48f651f9dd5ab3db6ce2ef4586e3 Mon Sep 17 00:00:00 2001 From: Shun Kakinoki Date: Sat, 11 Oct 2025 20:17:01 +0900 Subject: [PATCH 08/10] fix(yek): make activation script non-fatal on installation failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add error handling to the installYek activation script to prevent CI failures when GitHub API is rate-limited or network issues occur. The script now continues with a warning message instead of failing the entire home-manager activation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- home-manager/modules/yek/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home-manager/modules/yek/default.nix b/home-manager/modules/yek/default.nix index 50f7a61f3..0e0c6a050 100644 --- a/home-manager/modules/yek/default.nix +++ b/home-manager/modules/yek/default.nix @@ -90,7 +90,7 @@ in # Install yek on activation home.activation.installYek = lib.hm.dag.entryAfter [ "writeBoundary" ] '' if [ ! -f "$HOME/.local/bin/yek" ]; then - $DRY_RUN_CMD ${installScript}/bin/install-yek + $DRY_RUN_CMD ${installScript}/bin/install-yek || echo "⚠️ Failed to install yek. You can install it later by running: install-yek" fi ''; }; From 0b427b94a8815aedfa8dde5b70e8ff72f80cd8a2 Mon Sep 17 00:00:00 2001 From: Shun Kakinoki Date: Sat, 11 Oct 2025 20:19:02 +0900 Subject: [PATCH 09/10] feat(default.nix, homebrew.nix): add claude-code to package lists for improved accessibility --- home-manager/packages/default.nix | 2 +- nix-darwin/config/homebrew.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/home-manager/packages/default.nix b/home-manager/packages/default.nix index 5d54d2e1a..c676340ad 100644 --- a/home-manager/packages/default.nix +++ b/home-manager/packages/default.nix @@ -14,7 +14,6 @@ with pkgs; ast-grep bat bun - claude-code cloudflared curl curlie @@ -62,6 +61,7 @@ with pkgs; zoxide ] ++ lib.optionals stdenv.isLinux [ + claude-code codex docker docker-compose diff --git a/nix-darwin/config/homebrew.nix b/nix-darwin/config/homebrew.nix index 594857ec5..8f74d784b 100644 --- a/nix-darwin/config/homebrew.nix +++ b/nix-darwin/config/homebrew.nix @@ -16,6 +16,7 @@ ]; brews = [ "bun" + "claude-code" "claude-squad" "cmake" "codex" From fd04c9272b795403eb5b1957ca0e2f539f4e8680 Mon Sep 17 00:00:00 2001 From: Shun Kakinoki Date: Sat, 11 Oct 2025 20:21:52 +0900 Subject: [PATCH 10/10] feat(homebrew.nix): move claude-code from brews to casks for better organization --- nix-darwin/config/homebrew.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix-darwin/config/homebrew.nix b/nix-darwin/config/homebrew.nix index 8f74d784b..65c8c6740 100644 --- a/nix-darwin/config/homebrew.nix +++ b/nix-darwin/config/homebrew.nix @@ -16,7 +16,6 @@ ]; brews = [ "bun" - "claude-code" "claude-squad" "cmake" "codex" @@ -39,6 +38,7 @@ "block-goose" "chatgpt" "claude" + "claude-code" "conductor" "copilot-money" "cursor"