aboutsummaryrefslogtreecommitdiff
path: root/flake/scripts/common.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-11-15 11:54:13 -0800
committerFranck Cuny <franck@fcuny.net>2025-11-15 11:54:13 -0800
commit547e9b6bc13ea71431b8c84ae1689abad4cb6788 (patch)
treefee18c3947fdcbaca7b838edb24acfd0192ffe08 /flake/scripts/common.nix
parentclean up documentations (diff)
downloadinfra-547e9b6bc13ea71431b8c84ae1689abad4cb6788.tar.gz
drop terraform/terranix
Diffstat (limited to '')
-rw-r--r--flake/scripts/common.nix25
1 files changed, 0 insertions, 25 deletions
diff --git a/flake/scripts/common.nix b/flake/scripts/common.nix
index b8ab82e..931480c 100644
--- a/flake/scripts/common.nix
+++ b/flake/scripts/common.nix
@@ -1,29 +1,4 @@
{ pkgs }:
[
(pkgs.writeScriptBin "update-deps" "nix flake update --commit-lock-file")
-
- (pkgs.writeShellScriptBin "gcloud-auth" ''
- set -xeuo pipefail
- ${pkgs.google-cloud-sdk}/bin/gcloud auth print-identity-token > /dev/null 2>&1 || \
- ${pkgs.google-cloud-sdk}/bin/gcloud auth login --quiet
- ${pkgs.google-cloud-sdk}/bin/gcloud auth application-default print-access-token > /dev/null 2>&1 || \
- ${pkgs.google-cloud-sdk}/bin/gcloud auth application-default login --quiet
- '')
-
- (pkgs.writeShellScriptBin "tf-state-setup" ''
- set -xeuo pipefail
- ${pkgs.google-cloud-sdk}/bin/gcloud storage buckets describe \
- gs://fcuny-infra-tofu-state \
- --project=fcuny-infra \
- --quiet || \
-
- ${pkgs.google-cloud-sdk}/bin/gcloud storage buckets create \
- gs://fcuny-infra-tofu-state \
- --project=fcuny-infra \
- --uniform-bucket-level-access \
- --public-access-prevention \
- --location=us-west1 \
- --default-storage-class=STANDARD \
- --quiet
- '')
]