Ok, more bug fixing.

This commit is contained in:
Root User 2026-02-08 00:33:23 +01:00
parent 0ad5eddb8d
commit 9a6d5cea0d
Signed by: root
GPG key ID: 087F0A95E5766D72
3 changed files with 23 additions and 5 deletions

View file

@ -22,3 +22,19 @@ TODO HECK
- [ ] Figure out my life - [ ] Figure out my life
- [ ] Setup Hardware Keys - [ ] Setup Hardware Keys
- [ ] Setup a VPN (Likely OpenVPN) - [ ] Setup a VPN (Likely OpenVPN)
## NOTES FOR FUTURE
```
ServiceException: 401 Anonymous caller does not have storage.objects.list access to the Google Cloud Storage bucket. Permission 'storage.objects.list' denied on resource (or it may not exist).
```
You need to run
```zsh
sudo gcloud init
sudo gcloud auth activate-service-account --key-file /run/secrets/gcloud_bucket
```
Cheesus Crust, document this plz Google, whyyyyyyyyy

View file

@ -91,6 +91,12 @@
fastfetch fastfetch
hyfetch hyfetch
pgadmin4 pgadmin4
python3
python3Packages.pip
python3Packages.setuptools
python3Packages.wheel
python3Packages.pyopenssl
python3Packages.cryptography
google-cloud-sdk google-cloud-sdk
]; ];

View file

@ -96,12 +96,8 @@
set -euo pipefail set -euo pipefail
export GOOGLE_APPLICATION_CREDENTIALS="${config.sops.secrets.gcloud_bucket.path}" export GOOGLE_APPLICATION_CREDENTIALS="${config.sops.secrets.gcloud_bucket.path}"
## DEBUG ALL GOOGLE APPLICATION CREDENTIALS TO SEE IF THERE IS ANY ISSUE WITH THE CREDENTIALS
echo $GOOGLE_APPLICATION_CREDENTIALS
export PATH="${lib.makeBinPath [pkgs.mariadb pkgs.gzip pkgs.google-cloud-sdk pkgs.gnupg pkgs.coreutils pkgs.gnugrep]}:$PATH" export PATH="${lib.makeBinPath [pkgs.mariadb pkgs.gzip pkgs.google-cloud-sdk pkgs.gnupg pkgs.coreutils pkgs.gnugrep]}:$PATH"
TIMESTAMP=$(date +%Y%m%d%H%M%S) TIMESTAMP=$(date +%Y%m%d%H%M%S)
BACKUP_DIR=$(mktemp -d) BACKUP_DIR=$(mktemp -d)
trap 'rm -rf "$BACKUP_DIR"' EXIT trap 'rm -rf "$BACKUP_DIR"' EXIT