From 3b54bf37bf7a3e4fa4508c3ae30d074966e9497d Mon Sep 17 00:00:00 2001
From: Jean-Paul Calderone <exarkun@twistedmatrix.com>
Date: Thu, 17 Jun 2021 15:39:55 -0400
Subject: [PATCH] Use the "stable" CLI (which also agrees with the .nix I
 actually checked in)

---
 tools/create-vpn-keys.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/create-vpn-keys.sh b/tools/create-vpn-keys.sh
index 1ea1bf7d..f07fbebe 100755
--- a/tools/create-vpn-keys.sh
+++ b/tools/create-vpn-keys.sh
@@ -21,7 +21,7 @@ fi
 SRC=$(dirname $0)
 VPN_SECRETS=$(dirname $1)/secrets/monitoringvpn
 
-CONFIG=$(nix eval --json -f "${SRC}"/get-vpn-config.nix --arg pathToGrid "${1}" vpn)
+CONFIG=$(nix-instantiate --strict --json --eval "${SRC}"/get-vpn-config.nix --arg pathToGrid "${1}")
 
 MONITORING_IPS=$(echo $CONFIG | jp --unquoted "join(' ', clientIPs)")
 VPNSERVER_IP=$(echo $CONFIG | jp --unquoted "serverIP")
-- 
GitLab