diff options
-rwxr-xr-x | guix-reconfigure.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/guix-reconfigure.sh b/guix-reconfigure.sh index 9eefabb..1ef1d8c 100755 --- a/guix-reconfigure.sh +++ b/guix-reconfigure.sh @@ -1,7 +1,8 @@ #!/usr/bin/env bash -set -Eeuox pipefail +set -Eeuo pipefail cd "$(dirname "${BASH_SOURCE[0]}")" +set -x -envsubst < config.scm | ssh "$TLD" 'cat > /data/config.scm' +scp vps.scm "$TLD:vps.scm" ssh "$TLD" guix pull -ssh "$TLD" sudo -i guix system reconfigure /data/config.scm +ssh "$TLD" sudo guix system reconfigure vps.scm |