#!/usr/bin/env nix-shell #!nix-shell -i bash # shellcheck shell=bash set -Eeuo pipefail cd "$(dirname "${BASH_SOURCE[0]}")" git crypt unlock direnv allow envsubst < vps-configuration.env.nix | ssh "$TLD" 'cat > /etc/nixos/vps-configuration.nix' ssh "$TLD" sudo nixos-rebuild switch --upgrade