Ok, more bug fixing.
This commit is contained in:
parent
0ad5eddb8d
commit
9a6d5cea0d
3 changed files with 23 additions and 5 deletions
18
README.md
18
README.md
|
|
@ -21,4 +21,20 @@ TODO HECK
|
||||||
- [ ] Read up more about how to a backup machine stuff and making it Nix-y...
|
- [ ] Read up more about how to a backup machine stuff and making it Nix-y...
|
||||||
- [ ] 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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue