Repository navigation
chore: update packages and enhance backup services #453
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 all commits
24b532a
0cf16b1
94b051d
64aab0f
29ff227
a873009
581165d
479ea36
d3f7de1
34f0615
9dbb71a
5f522f2
d698fd0
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 |
|---|---|---|
| @@ -1,21 +1,24 @@ | ||
| { pkgs, ... }: | ||
| let | ||
| inherit (pkgs) lib; | ||
| # Use build-time HOME for paths that need it at plist generation | ||
| homeDir = builtins.getEnv "HOME"; | ||
|
|
||
| # Create start script with paths substituted at build time | ||
| startScript = pkgs.replaceVars ./scripts/start.sh { | ||
| aws = "${pkgs.awscli2}/bin/aws"; | ||
| sed = "${pkgs.gnused}/bin/sed"; | ||
| }; | ||
|
|
||
| # Bundle all backup scripts together | ||
| backupScripts = pkgs.runCommand "backup-scripts" { } '' | ||
| mkdir -p $out | ||
| cp ${./scripts/backup-and-recover.sh} $out/backup-and-recover.sh | ||
| cp ${./scripts/backup-auth.sh} $out/backup-auth.sh | ||
| cp ${./scripts/recover-auth.sh} $out/recover-auth.sh | ||
| chmod +x $out/*.sh | ||
| ''; | ||
| # Create backup scripts with paths substituted at build time | ||
| backupAuthScript = pkgs.replaceVars ./scripts/backup-auth.sh { | ||
| aws = "${pkgs.awscli2}/bin/aws"; | ||
| rsync = "${pkgs.rsync}/bin/rsync"; | ||
| }; | ||
| backupAndRecoverScript = pkgs.replaceVars ./scripts/backup-and-recover.sh { | ||
| bash = "${pkgs.bash}/bin/bash"; | ||
| backupAuthScript = backupAuthScript; | ||
| }; | ||
| in | ||
| { | ||
| # Main cliproxyapi service | ||
|
|
@@ -27,7 +30,7 @@ in | |
| "${startScript}" | ||
| ]; | ||
| Environment = { | ||
| HOME = "/Users/shunkakinoki"; | ||
| HOME = homeDir; | ||
| PATH = "${ | ||
| lib.makeBinPath [ | ||
| pkgs.gnused | ||
|
|
@@ -67,47 +70,63 @@ in | |
| }; | ||
| }; | ||
|
|
||
| # Backup/recovery service | ||
| # Backup service with file watching for real-time sync | ||
| launchd.agents.cliproxyapi-backup = lib.mkIf pkgs.stdenv.isDarwin { | ||
| enable = true; | ||
| config = { | ||
| ProgramArguments = [ | ||
| "${pkgs.bash}/bin/bash" | ||
| "${backupScripts}/backup-and-recover.sh" | ||
| "${backupAndRecoverScript}" | ||
| ]; | ||
| Environment = { | ||
| HOME = homeDir; | ||
| PATH = "${ | ||
| lib.makeBinPath [ | ||
| pkgs.bash | ||
| pkgs.coreutils | ||
| pkgs.awscli2 | ||
| pkgs.rsync | ||
| ] | ||
| }:/opt/homebrew/bin:/usr/local/bin:/usr/bin"; | ||
| }; | ||
| # Watch auth directories for changes - triggers sync immediately | ||
| WatchPaths = [ | ||
| "${homeDir}/.cli-proxy-api/objectstore/auths" | ||
| "${homeDir}/dotfiles/objectstore/auths" | ||
| "${homeDir}/.ccs/cliproxy/auth" | ||
| ]; | ||
|
Comment on lines
+92
to
97
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.
With Useful? React with 👍 / 👎. |
||
| StartInterval = 180; # Run every 3 minutes | ||
| RunAtLoad = true; | ||
| StandardOutPath = "/tmp/cliproxyapi-backup.log"; | ||
| StandardErrorPath = "/tmp/cliproxyapi-backup.error.log"; | ||
| }; | ||
| }; | ||
|
|
||
| systemd.user.timers.cliproxyapi-backup = lib.mkIf pkgs.stdenv.isLinux { | ||
| Unit = { | ||
| Description = "CLIProxyAPI auth backup and recovery timer"; | ||
| }; | ||
| Timer = { | ||
| OnBootSec = "1min"; | ||
| OnUnitActiveSec = "3min"; | ||
| systemd.user.paths.cliproxyapi-backup = lib.mkIf pkgs.stdenv.isLinux { | ||
| Unit.Description = "Watch auth directories for changes"; | ||
| Path = { | ||
| PathChanged = [ | ||
| "%h/.cli-proxy-api/objectstore/auths" | ||
| "%h/dotfiles/objectstore/auths" | ||
| "%h/.ccs/cliproxy/auth" | ||
| ]; | ||
| Unit = "cliproxyapi-backup.service"; | ||
| }; | ||
| Install = { | ||
| WantedBy = [ "timers.target" ]; | ||
| }; | ||
| Install.WantedBy = [ "paths.target" ]; | ||
| }; | ||
|
|
||
| systemd.user.services.cliproxyapi-backup = lib.mkIf pkgs.stdenv.isLinux { | ||
| Unit = { | ||
| Description = "CLIProxyAPI auth backup and recovery"; | ||
| Description = "CLIProxyAPI auth backup"; | ||
| }; | ||
| Service = { | ||
| Type = "oneshot"; | ||
| ExecStart = "${pkgs.bash}/bin/bash ${backupScripts}/backup-and-recover.sh"; | ||
| ExecStart = "${pkgs.bash}/bin/bash ${backupAndRecoverScript}"; | ||
| Environment = "PATH=${ | ||
| lib.makeBinPath [ | ||
| pkgs.bash | ||
| pkgs.awscli2 | ||
| pkgs.coreutils | ||
| pkgs.rsync | ||
| ] | ||
| }"; | ||
| }; | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -9,33 +9,74 @@ BACKUP_DIR="s3://cliproxyapi/backup/auths/" | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| MAIN_DIR="s3://cliproxyapi/auths/" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| AUTH_DIR="$CONFIG_DIR/objectstore/auths" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| DOTFILES_AUTH_DIR="$HOME/dotfiles/objectstore/auths" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CCS_AUTH_DIR="$HOME/.ccs/cliproxy/auth" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # First, sync from dotfiles repo to local cache (picks up new auth files from ccs auth) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # STEP 1: Pull from R2 to local (captures files created by cliproxyapi directly in R2) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| mkdir -p "$AUTH_DIR" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if [ -n "${OBJECTSTORE_ENDPOINT:-}" ]; then | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| AWS_ACCESS_KEY_ID="${OBJECTSTORE_ACCESS_KEY}" \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| AWS_SECRET_ACCESS_KEY="${OBJECTSTORE_SECRET_KEY}" \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @aws@ s3 sync \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --endpoint-url="${OBJECTSTORE_ENDPOINT}" \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --no-progress \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "$MAIN_DIR" \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "$AUTH_DIR/" 2>/dev/null && echo "✅ Pulled from R2 auths/" >&2 || true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Contributor
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. The
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # Also pull from backup location to ensure we have all files | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| AWS_ACCESS_KEY_ID="${OBJECTSTORE_ACCESS_KEY}" \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| AWS_SECRET_ACCESS_KEY="${OBJECTSTORE_SECRET_KEY}" \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @aws@ s3 sync \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --endpoint-url="${OBJECTSTORE_ENDPOINT}" \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --no-progress \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "$BACKUP_DIR" \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "$AUTH_DIR/" 2>/dev/null && echo "✅ Pulled from R2 backup/auths/" >&2 || true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Contributor
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. Similar to the previous
Suggested change
Comment on lines
+17
to
+32
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| AWS_ACCESS_KEY_ID="${OBJECTSTORE_ACCESS_KEY}" \ | |
| AWS_SECRET_ACCESS_KEY="${OBJECTSTORE_SECRET_KEY}" \ | |
| @aws@ s3 sync \ | |
| --endpoint-url="${OBJECTSTORE_ENDPOINT}" \ | |
| --no-progress \ | |
| "$MAIN_DIR" \ | |
| "$AUTH_DIR/" 2>/dev/null && echo "✅ Pulled from R2 auths/" >&2 || true | |
| # Also pull from backup location to ensure we have all files | |
| AWS_ACCESS_KEY_ID="${OBJECTSTORE_ACCESS_KEY}" \ | |
| AWS_SECRET_ACCESS_KEY="${OBJECTSTORE_SECRET_KEY}" \ | |
| @aws@ s3 sync \ | |
| --endpoint-url="${OBJECTSTORE_ENDPOINT}" \ | |
| --no-progress \ | |
| "$BACKUP_DIR" \ | |
| "$AUTH_DIR/" 2>/dev/null && echo "✅ Pulled from R2 backup/auths/" >&2 || true | |
| MAIN_SYNC_STATUS=0 | |
| AWS_ACCESS_KEY_ID="${OBJECTSTORE_ACCESS_KEY}" \ | |
| AWS_SECRET_ACCESS_KEY="${OBJECTSTORE_SECRET_KEY}" \ | |
| @aws@ s3 sync \ | |
| --endpoint-url="${OBJECTSTORE_ENDPOINT}" \ | |
| --no-progress \ | |
| "$MAIN_DIR" \ | |
| "$AUTH_DIR/" 2>/dev/null && echo "✅ Pulled from R2 auths/" >&2 || MAIN_SYNC_STATUS=$? | |
| # Fallback: pull from backup location only if main sync failed or produced no files | |
| if [ "$MAIN_SYNC_STATUS" -ne 0 ] || [ -z "$(ls -A "$AUTH_DIR" 2>/dev/null)" ]; then | |
| AWS_ACCESS_KEY_ID="${OBJECTSTORE_ACCESS_KEY}" \ | |
| AWS_SECRET_ACCESS_KEY="${OBJECTSTORE_SECRET_KEY}" \ | |
| @aws@ s3 sync \ | |
| --endpoint-url="${OBJECTSTORE_ENDPOINT}" \ | |
| --no-progress \ | |
| "$BACKUP_DIR" \ | |
| "$AUTH_DIR/" 2>/dev/null && echo "✅ Pulled from R2 backup/auths/" >&2 || true | |
| fi |
Copilot
AI
Dec 27, 2025
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.
The comment says "STEP 2b" but the previous step is "STEP 2", not "STEP 2a". The numbering scheme should either use STEP 3 or change STEP 2 to STEP 2a for consistency.
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.
Bug: $? will be 0 after the echo command.
The $? in the error message will always reflect the exit status of the preceding echo command (which is 0), not the failed AWS sync. Capture the exit code before reporting.
🔎 Proposed fix
AWS_ACCESS_KEY_ID="${OBJECTSTORE_ACCESS_KEY}" \
AWS_SECRET_ACCESS_KEY="${OBJECTSTORE_SECRET_KEY}" \
@aws@ s3 sync \
--endpoint-url="${OBJECTSTORE_ENDPOINT}" \
--no-progress \
"$AUTH_DIR/" \
- "$MAIN_DIR" && echo "✅ Synced to auths/" >&2 || echo "⚠️ Sync to auths/ failed: $?" >&2
+ "$MAIN_DIR" && echo "✅ Synced to auths/" >&2 || { rc=$?; echo "⚠️ Sync to auths/ failed: $rc" >&2; }📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| AWS_ACCESS_KEY_ID="${OBJECTSTORE_ACCESS_KEY}" \ | |
| AWS_SECRET_ACCESS_KEY="${OBJECTSTORE_SECRET_KEY}" \ | |
| @aws@ s3 sync \ | |
| --endpoint-url="${OBJECTSTORE_ENDPOINT}" \ | |
| --no-progress \ | |
| "$AUTH_DIR/" \ | |
| "$MAIN_DIR" && echo "✅ Synced to auths/" >&2 || echo "⚠️ Sync to auths/ failed: $?" >&2 | |
| AWS_ACCESS_KEY_ID="${OBJECTSTORE_ACCESS_KEY}" \ | |
| AWS_SECRET_ACCESS_KEY="${OBJECTSTORE_SECRET_KEY}" \ | |
| @aws@ s3 sync \ | |
| --endpoint-url="${OBJECTSTORE_ENDPOINT}" \ | |
| --no-progress \ | |
| "$AUTH_DIR/" \ | |
| "$MAIN_DIR" && echo "✅ Synced to auths/" >&2 || { rc=$?; echo "⚠️ Sync to auths/ failed: $rc" >&2; } |
🤖 Prompt for AI Agents
In home-manager/services/cliproxyapi/scripts/backup-auth.sh around lines 55 to
61, the error message uses `$?` after an `echo`, so it reports the echo's exit
status (0) instead of the AWS sync exit code; immediately capture the aws s3
sync exit status into a variable right after the sync command (e.g., rc=$?),
then use that variable in the subsequent conditional/echo to report the actual
failure code and preserve original redirection to stderr.
Copilot
AI
Dec 27, 2025
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.
The error message prints the exit code "$?" which will always be 0 in this context because the echo command itself succeeds. The exit code from the aws s3 sync command is lost due to the || operator. Consider capturing the exit code before the || operator or restructure the error handling to properly report the actual failure code.
| AWS_ACCESS_KEY_ID="${OBJECTSTORE_ACCESS_KEY}" \ | |
| AWS_SECRET_ACCESS_KEY="${OBJECTSTORE_SECRET_KEY}" \ | |
| @aws@ s3 sync \ | |
| --endpoint-url="${OBJECTSTORE_ENDPOINT}" \ | |
| --no-progress \ | |
| "$AUTH_DIR/" \ | |
| "$MAIN_DIR" && echo "✅ Synced to auths/" >&2 || echo "⚠️ Sync to auths/ failed: $?" >&2 | |
| if AWS_ACCESS_KEY_ID="${OBJECTSTORE_ACCESS_KEY}" \ | |
| AWS_SECRET_ACCESS_KEY="${OBJECTSTORE_SECRET_KEY}" \ | |
| @aws@ s3 sync \ | |
| --endpoint-url="${OBJECTSTORE_ENDPOINT}" \ | |
| --no-progress \ | |
| "$AUTH_DIR/" \ | |
| "$MAIN_DIR"; then | |
| echo "✅ Synced to auths/" >&2 | |
| else | |
| echo "⚠️ Sync to auths/ failed: $?" >&2 | |
| fi |
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.
The error message for the backup sync failure on line 70 does not include the exit code, unlike the main sync failure message on line 61. For consistency and better debugging, it's helpful to include the exit code ($?) in all failure messages.
| "$MAIN_DIR" && echo "✅ Synced to auths/" >&2 || echo "⚠️ Sync to auths/ failed: $?" >&2 | |
| # Also sync to backup location for redundancy | |
| AWS_ACCESS_KEY_ID="${OBJECTSTORE_ACCESS_KEY}" \ | |
| AWS_SECRET_ACCESS_KEY="${OBJECTSTORE_SECRET_KEY}" \ | |
| aws s3 sync \ | |
| --endpoint-url="${OBJECTSTORE_ENDPOINT}" \ | |
| --no-progress \ | |
| "$AUTH_DIR/" \ | |
| "$BACKUP_DIR" 2>/dev/null && echo "✅ Synced to backup/auths/" >&2 || echo "⚠️ Backup sync failed" >&2 | |
| # Also sync to backup location for redundancy | |
| AWS_ACCESS_KEY_ID="${OBJECTSTORE_ACCESS_KEY}" \ | |
| AWS_SECRET_ACCESS_KEY="${OBJECTSTORE_SECRET_KEY}" \ | |
| @aws@ s3 sync \ | |
| --endpoint-url="${OBJECTSTORE_ENDPOINT}" \ | |
| --no-progress \ | |
| "$AUTH_DIR/" \ | |
| "$BACKUP_DIR" && echo "✅ Synced to backup/auths/" >&2 || echo "⚠️ Backup sync failed" >&2 | |
| "$MAIN_DIR" && echo "✅ Synced to auths/" >&2 || echo "⚠️ Sync to auths/ failed: $?" >&2 | |
| # Also sync to backup location for redundancy | |
| AWS_ACCESS_KEY_ID="${OBJECTSTORE_ACCESS_KEY}" \ | |
| AWS_SECRET_ACCESS_KEY="${OBJECTSTORE_SECRET_KEY}" \ | |
| @aws@ s3 sync \ | |
| --endpoint-url="${OBJECTSTORE_ENDPOINT}" \ | |
| --no-progress \ | |
| "$AUTH_DIR/" \ | |
| "$BACKUP_DIR" && echo "✅ Synced to backup/auths/" >&2 || echo "⚠️ Backup sync failed: $?" >&2 |
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.
To ensure that the ccs auth directory is an exact mirror of the local cache, consider adding the --delete flag to rsync. This will remove any files in the destination that are no longer present in the source, which is useful for propagating token deletions.
| @rsync@ -a "$AUTH_DIR/" "$CCS_AUTH_DIR/" | |
| @rsync@ -a --delete "$AUTH_DIR/" "$CCS_AUTH_DIR/" |
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.
Similarly, to ensure the dotfiles auth directory is an exact mirror of the local cache for git tracking, consider adding the --delete flag to rsync. This will ensure that deleted tokens are also removed from the dotfiles repository.
| @rsync@ -a "$AUTH_DIR/" "$DOTFILES_AUTH_DIR/" | |
| @rsync@ -a --delete "$AUTH_DIR/" "$DOTFILES_AUTH_DIR/" |
Copilot
AI
Dec 27, 2025
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.
The backup script now syncs auth files back to the CCS auth directory and dotfiles directory even when OBJECTSTORE_ENDPOINT is not set, which means it could sync stale/incomplete data. These sync operations (lines 73-81) should only execute when the R2 sync succeeds, or at minimum when OBJECTSTORE_ENDPOINT is set, to ensure data consistency across all locations.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,6 +40,7 @@ | |
| "postgresql" | ||
| "postgresql@18" | ||
| "protobuf" | ||
| "pulumi" | ||
|
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. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Check if pulumi is available in nixpkgs
nix search nixpkgs pulumi --json 2>/dev/null | jq 'keys' || echo "Search failed or pulumi not found"Repository: shunkakinoki/dotfiles Length of output: 47 🏁 Script executed: #!/bin/bash
# Examine the file context around line 43
if [ -f "nix-darwin/config/homebrew.nix" ]; then
echo "=== File context around line 43 ==="
head -n 50 nix-darwin/config/homebrew.nix | tail -n 20
else
echo "File not found at nix-darwin/config/homebrew.nix"
find . -name "homebrew.nix" -type f 2>/dev/null
fiRepository: shunkakinoki/dotfiles Length of output: 418 🏁 Script executed: #!/bin/bash
# Check file structure
echo "=== Full homebrew.nix structure ==="
cat -n nix-darwin/config/homebrew.nixRepository: shunkakinoki/dotfiles Length of output: 2943 🏁 Script executed: #!/bin/bash
# Try different approaches to find pulumi in nixpkgs
echo "=== Search for pulumi in nixpkgs registry ==="
nix-env -qa 'pulumi' 2>/dev/null || echo "nix-env search unavailable"
echo ""
echo "=== Check flake inputs or nixpkgs references ==="
if [ -f "flake.nix" ]; then
grep -A5 -B5 "nixpkgs" flake.nix | head -20
fiRepository: shunkakinoki/dotfiles Length of output: 678 🌐 Web query:
💡 Result: Short answer — Pulumi is cross‑platform and available in nixpkgs/NixOS.
If you want specific nixpkgs package names or an example NixOS/flake snippet to install Pulumi, tell me which language/runtime (CLI only, nodejs, python, etc.) and whether you prefer flake or legacy config and I’ll provide it. Sources: Move pulumi from Homebrew to nixpkgs. Pulumi is a cross-platform tool with packages available for macOS, Linux, and Windows. It is available in nixpkgs and should be installed via nixpkgs instead of Homebrew to follow the guideline that Homebrew should only be used for macOS-specific applications. 🤖 Prompt for AI Agents |
||
| "reth" | ||
| "sheldon" | ||
| "sshpass" | ||
|
|
||
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.
🧩 Analysis chain
🏁 Script executed:
Repository: shunkakinoki/dotfiles
Length of output: 129
🏁 Script executed:
Repository: shunkakinoki/dotfiles
Length of output: 286
🏁 Script executed:
Repository: shunkakinoki/dotfiles
Length of output: 369
🏁 Script executed:
Repository: shunkakinoki/dotfiles
Length of output: 679
🏁 Script executed:
Repository: shunkakinoki/dotfiles
Length of output: 256
🏁 Script executed:
Repository: shunkakinoki/dotfiles
Length of output: 287
Remove watchexec from Homebrew config; it duplicates the nixpkgs installation.
Watchexec appears in both
home-manager/packages/default.nix(line 81) andnix-darwin/config/homebrew.nix(line 48). Per coding guidelines, Homebrew should only be used for macOS-specific applications. Since watchexec is a cross-platform utility, it should come from nixpkgs alone. Additionally, five other packages are duplicated across both configurations: bun, ffmpeg, gemini-cli, opencode, and postgresql. Consider auditing and removing these duplicates from one location.🤖 Prompt for AI Agents