aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.envrc7
1 files changed, 6 insertions, 1 deletions
diff --git a/.envrc b/.envrc
index 74ecbc0..acc0678 100644
--- a/.envrc
+++ b/.envrc
@@ -33,4 +33,9 @@ export VOLUME_HOME="/home/vps/volumes"
# https://discourse.nixos.org/t/inconsistent-hash-of-buildgomodule/3127/4
export NIX_PATH=nixpkgs=channel:nixos-unstable
-source ./secrets/secret-envrc.sh \ No newline at end of file
+if [[ "$(file -b ./secrets/secret-envrc.sh)" = "data" ]];
+then
+ echo 'The ./secrets/secret-envrc.sh is encrypted, not sourcing it.'
+else
+ source ./secrets/secret-envrc.sh
+fi