]>
Commit | Line | Data |
---|---|---|
568d4240 IB |
1 | #!/bin/bash |
2 | ||
3 | DeploymentUuid="cef694f3-081d-11e9-b31f-0242ec186adf" | |
568d4240 IB |
4 | if [ -z "$NIXOPS_CONFIG_PASS_SUBTREE_PATH" ]; then |
5 | echo "Please set NIXOPS_CONFIG_PASS_SUBTREE_PATH to the password-store subtree path" | |
6 | exit 1; | |
7 | fi | |
568d4240 IB |
8 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" |
9 | export NIXOPS_STATE="$(dirname $DIR)/state/eldiron.nixops" | |
10 | export NIXOPS_DEPLOYMENT="$DeploymentUuid" | |
95d4a7a0 | 11 | source $(dirname $(dirname $DIR))/nix_path_env |
fdf6f74d | 12 | nixops="$(nix-build --no-out-link "$(dirname $DIR)/custom_nixops.nix")/bin/nixops" |
568d4240 | 13 | |
c79bb682 | 14 | $nixops export | pass insert -m $NIXOPS_CONFIG_PASS_SUBTREE_PATH/Nixops/Deployment |