From 692cddef21f1c4390a8c84cfde1a8a7d3f674292 Mon Sep 17 00:00:00 2001 From: Harivansh Rathi Date: Mon, 30 Mar 2026 23:03:32 -0400 Subject: [PATCH] restore aws --- flake.lock | 56 ++----------------------------------- scripts/restore-bw-files.sh | 3 +- 2 files changed, 4 insertions(+), 55 deletions(-) diff --git a/flake.lock b/flake.lock index 9718ab1..9d08225 100644 --- a/flake.lock +++ b/flake.lock @@ -1,23 +1,5 @@ { "nodes": { - "agentcomputer-cli": { - "inputs": { - "flake-utils": "flake-utils", - "nixpkgs": [ - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1774760219, - "narHash": "sha256-FDFj3u5KSiT0Ak6TMpn4ajk9mSlijOq7OoqVet6ATEI=", - "path": "/Users/rathi/Documents/GitHub/companion/agentcomputer/apps/cli", - "type": "path" - }, - "original": { - "path": "/Users/rathi/Documents/GitHub/companion/agentcomputer/apps/cli", - "type": "path" - } - }, "brew-src": { "flake": false, "locked": { @@ -37,7 +19,7 @@ }, "claudeCode": { "inputs": { - "flake-utils": "flake-utils_2", + "flake-utils": "flake-utils", "nixpkgs": [ "nixpkgs" ] @@ -130,27 +112,9 @@ "type": "github" } }, - "flake-utils_3": { - "inputs": { - "systems": "systems_3" - }, - "locked": { - "lastModified": 1731533236, - "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, "googleworkspace-cli": { "inputs": { - "flake-utils": "flake-utils_3", + "flake-utils": "flake-utils_2", "nixpkgs": [ "nixpkgs" ] @@ -295,7 +259,6 @@ }, "root": { "inputs": { - "agentcomputer-cli": "agentcomputer-cli", "claudeCode": "claudeCode", "disko": "disko", "flake-parts": "flake-parts", @@ -336,21 +299,6 @@ "repo": "default", "type": "github" } - }, - "systems_3": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } } }, "root": "root", diff --git a/scripts/restore-bw-files.sh b/scripts/restore-bw-files.sh index 7394f1b..20d5bc0 100755 --- a/scripts/restore-bw-files.sh +++ b/scripts/restore-bw-files.sh @@ -63,7 +63,8 @@ restore_aws_credentials() { access_key="$(printf '%s\n' "${note}" | sed -n 's/^aws_access_key_id=//p' | head -1)" secret_key="$(printf '%s\n' "${note}" | sed -n 's/^aws_secret_access_key=//p' | head -1)" - write_file "${HOME}/.aws/credentials" 600 "[default] + local aws_creds="${AWS_SHARED_CREDENTIALS_FILE:-${XDG_CONFIG_HOME:-$HOME/.config}/aws/credentials}" + write_file "${aws_creds}" 600 "[default] aws_access_key_id = ${access_key} aws_secret_access_key = ${secret_key} "