aboutsummaryrefslogtreecommitdiff
path: root/.envrc
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-08-10 12:15:49 -0300
committerEuAndreh <eu@euandre.org>2020-08-10 12:45:43 -0300
commit100ab568e3aeb512e86fd1155a73454d22e24895 (patch)
tree1d7ff9168b8cfc60e173f2a19f30938bc68d0f6e /.envrc
parentWIP: Move to Vultr and NixOS (diff)
downloadtoph-100ab568e3aeb512e86fd1155a73454d22e24895.tar.gz
toph-100ab568e3aeb512e86fd1155a73454d22e24895.tar.xz
Migration: Remove Ansible and Docker code, move only to NixOS
Diffstat (limited to '.envrc')
l---------[-rw-r--r--].envrc44
1 files changed, 1 insertions, 43 deletions
diff --git a/.envrc b/.envrc
index 89d8608..9178137 100644..120000
--- a/.envrc
+++ b/.envrc
@@ -1,43 +1 @@
-#!/usr/bin/env bash
-set -Eeuo pipefail
-
-#
-# Operational toggle
-#
-export DESTROY_VOLUME=
-
-#
-# Variables defined by commands
-#
-VPS_COMMIT_SHA="$(cat .git/refs/heads/master)"
-export VPS_COMMIT_SHA
-# Used for keeping bash variables for run-time substituion instead of execution time substitution.
-# Taken from:
-# https://stackoverflow.com/questions/24963705/is-there-an-escape-character-for-envsubst
-export DOLLAR='$'
-
-#
-# docker-compose
-#
-export VOLUME_HOME="/home/vps/volumes"
-
-#
-# Nix
-#
-# Use the same $NIX_PATH as in the CI
-# See also:
-# https://discourse.nixos.org/t/inconsistent-hash-of-buildgomodule/3127/4
-export NIX_PATH=nixpkgs=channel:nixos-unstable
-
-if [[ "$(file -b ./secrets/secret-envrc.sh 2> /dev/null)" = "data" ]];
-then
- echo 'The ./secrets/secret-envrc.sh is encrypted, not sourcing it.'
- return
-fi
-
-SSH_SERVER_PRIVATE_KEY="$(cat ./secrets/ssh/vps-box-server)"
-export SSH_SERVER_PRIVATE_KEY
-SSH_SERVER_PUBLIC_KEY="$(cat ./secrets/ssh/vps-box-server.pub)"
-export SSH_SERVER_PUBLIC_KEY
-
-source ./secrets/secret-envrc.sh
+secrets/secret-envrc.sh \ No newline at end of file