diff options
| author | EuAndreh <eu@euandre.org> | 2020-09-06 09:53:58 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2020-09-06 15:48:45 -0300 |
| commit | 3f1d7201bfc46ff9edaa109bc41b59908f99c23b (patch) | |
| tree | 30c89f1f19c156c044855839b62ea3eeca0a739a /.envrc | |
| parent | nixos-switch.sh: Decouple the update of pires app from deploying the VPS (diff) | |
| download | toph-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---------] | .envrc | 27 |
1 files changed, 26 insertions, 1 deletions
@@ -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" |
