aboutsummaryrefslogtreecommitdiff
path: root/.envrc
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-09-06 09:53:58 -0300
committerEuAndreh <eu@euandre.org>2020-09-06 15:48:45 -0300
commit3f1d7201bfc46ff9edaa109bc41b59908f99c23b (patch)
tree30c89f1f19c156c044855839b62ea3eeca0a739a /.envrc
parentnixos-switch.sh: Decouple the update of pires app from deploying the VPS (diff)
downloadtoph-3f1d7201bfc46ff9edaa109bc41b59908f99c23b.tar.gz
toph-3f1d7201bfc46ff9edaa109bc41b59908f99c23b.tar.xz
Refactor vps-configuration.nix: Split secrets from config and envsubst vars
Also rename thingTLD to thingDomain.
Diffstat (limited to '.envrc')
-rw-r--r--[l---------].envrc27
1 files changed, 26 insertions, 1 deletions
diff --git a/.envrc b/.envrc
index 9178137..d51f280 120000..100644
--- a/.envrc
+++ b/.envrc
@@ -1 +1,26 @@
-secrets/secret-envrc.sh \ No newline at end of file
+#!/usr/bin/env bash
+set -Eeuo pipefail
+
+#
+# envsubst variables for:
+# - envsubst-configuration.nix
+# - nixos-update.sh
+#
+export TLD='euandreh.xyz'
+export DATA_ROOT='/data'
+export FAVICONS_ROOT="${DATA_ROOT}/favicons"
+export STATIC_ROOT="${DATA_ROOT}/static"
+export CI_LOGS_ROOT="${STATIC_ROOT}/ci-logs"
+export GIT_ROOT="${DATA_ROOT}/git"
+export SYSTEM_STATE_VERSION='20.03'
+export USER_NAME='andreh'
+export SECRETS_ROOT='/secrets'
+export NEXTCLOUD_DATABASE_USER='nextcloud'
+export PROSODY_ENABLE='false'
+
+#
+# Terraform
+#
+export TF_VAR_tld="${TLD}"
+export TF_VAR_hostname="sovereignty-nixos"
+export TF_VAR_storage_name="sovereignty-nixos-storage"