From 100ab568e3aeb512e86fd1155a73454d22e24895 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 10 Aug 2020 12:15:49 -0300 Subject: Migration: Remove Ansible and Docker code, move only to NixOS --- .envrc | 44 +------------------------------------------- 1 file changed, 1 insertion(+), 43 deletions(-) mode change 100644 => 120000 .envrc (limited to '.envrc') diff --git a/.envrc b/.envrc deleted file mode 100644 index 89d8608..0000000 --- a/.envrc +++ /dev/null @@ -1,43 +0,0 @@ -#!/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 diff --git a/.envrc b/.envrc new file mode 120000 index 0000000..9178137 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +secrets/secret-envrc.sh \ No newline at end of file -- cgit v1.3