From 9a6d5cea0d1bfab524ac3393d58ca09668f149bf Mon Sep 17 00:00:00 2001 From: Christine Elisabeth Koppel Date: Sun, 8 Feb 2026 00:33:23 +0100 Subject: [PATCH] Ok, more bug fixing. --- README.md | 18 +++++++++++++++++- nix-system-configs/modules/system/database.nix | 6 ++++++ .../modules/system_scripts/gcloud_backup.nix | 4 ---- 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 227b58f..40cdbf9 100644 --- a/README.md +++ b/README.md @@ -21,4 +21,20 @@ TODO HECK - [ ] Read up more about how to a backup machine stuff and making it Nix-y... - [ ] Figure out my life - [ ] Setup Hardware Keys - - [ ] Setup a VPN (Likely OpenVPN) \ No newline at end of file + - [ ] 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 + diff --git a/nix-system-configs/modules/system/database.nix b/nix-system-configs/modules/system/database.nix index 095c7c9..a4625c6 100644 --- a/nix-system-configs/modules/system/database.nix +++ b/nix-system-configs/modules/system/database.nix @@ -91,6 +91,12 @@ fastfetch hyfetch pgadmin4 + python3 + python3Packages.pip + python3Packages.setuptools + python3Packages.wheel + python3Packages.pyopenssl + python3Packages.cryptography google-cloud-sdk ]; diff --git a/nix-system-configs/modules/system_scripts/gcloud_backup.nix b/nix-system-configs/modules/system_scripts/gcloud_backup.nix index 2a2c9a9..adb4e4c 100644 --- a/nix-system-configs/modules/system_scripts/gcloud_backup.nix +++ b/nix-system-configs/modules/system_scripts/gcloud_backup.nix @@ -96,12 +96,8 @@ set -euo pipefail 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" - TIMESTAMP=$(date +%Y%m%d%H%M%S) BACKUP_DIR=$(mktemp -d) trap 'rm -rf "$BACKUP_DIR"' EXIT